OSDN Git Service

Add getter method to access Reloc::Model.
authorMatheus Almeida <matheus.almeida@imgtec.com>
Thu, 27 Feb 2014 18:39:53 +0000 (18:39 +0000)
committerMatheus Almeida <matheus.almeida@imgtec.com>
Thu, 27 Feb 2014 18:39:53 +0000 (18:39 +0000)
Some MC components like Target Streamers or Assembly Parsers
may need to access the relocation model in order to expand
some directives and/or assembly macros.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202418 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCObjectFileInfo.h

index cc5eb9e..2524692 100644 (file)
@@ -366,6 +366,10 @@ public:
     return Env;
   }
 
+  Reloc::Model getRelocM() const {
+    return RelocM;
+  }
+
 private:
   Environment Env;
   Reloc::Model RelocM;