fixed indentation, deleted useless comment
[libfirm] / ir / be / bearch_t.h
index c2a9e95..70914ac 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -317,6 +317,11 @@ struct arch_code_generator_if_t {
         */
        void *(*init)(be_irg_t *birg);
 
+       /**
+        * return node used as base in pic code addresses
+        */
+       ir_node* (*get_pic_base)(void *self);
+
        /**
         * Called before abi introduce.
         */
@@ -387,6 +392,8 @@ do { \
 #define arch_code_generator_done(cg)            _arch_cg_call(cg, done)
 #define arch_code_generator_spill(cg, birg)     _arch_cg_call_env(cg, birg, spill)
 #define arch_code_generator_has_spiller(cg)     ((cg)->impl->spill != NULL)
+#define arch_code_generator_get_pic_base(cg)    \
+       ((cg)->impl->get_pic_base != NULL ? (cg)->impl->get_pic_base(cg) : NULL)
 
 /**
  * Code generator base class.
@@ -453,10 +460,10 @@ struct arch_isa_if_t {
        /**
         * Get the ABI restrictions for procedure calls.
         * @param self        The this pointer.
-        * @param method_type The type of the method (procedure) in question.
+        * @param call_type   The call type of the method (procedure) in question.
         * @param p           The array of parameter locations to be filled.
         */
-       void (*get_call_abi)(const void *self, ir_type *method_type, be_abi_call_t *abi);
+       void (*get_call_abi)(const void *self, ir_type *call_type, be_abi_call_t *abi);
 
        /**
         * The irn handler for this architecture.