[llvm] r202418 - Add getter method to access Reloc::Model.

Matheus Almeida matheus.almeida at imgtec.com
Thu Feb 27 10:39:53 PST 2014


Author: matheusalmeida
Date: Thu Feb 27 12:39:53 2014
New Revision: 202418

URL: http://llvm.org/viewvc/llvm-project?rev=202418&view=rev
Log:
Add getter method to access Reloc::Model.

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.


Modified:
    llvm/trunk/include/llvm/MC/MCObjectFileInfo.h

Modified: llvm/trunk/include/llvm/MC/MCObjectFileInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCObjectFileInfo.h?rev=202418&r1=202417&r2=202418&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCObjectFileInfo.h (original)
+++ llvm/trunk/include/llvm/MC/MCObjectFileInfo.h Thu Feb 27 12:39:53 2014
@@ -366,6 +366,10 @@ public:
     return Env;
   }
 
+  Reloc::Model getRelocM() const {
+    return RelocM;
+  }
+
 private:
   Environment Env;
   Reloc::Model RelocM;





More information about the llvm-commits mailing list