diff options
author | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-02-27 18:39:53 +0000 |
---|---|---|
committer | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-02-27 18:39:53 +0000 |
commit | 3e31a5684a48748b469ecd2227490ca2d261bb7a (patch) | |
tree | b03764d4263db84b7ce9a9ec3d9cda1dc5b680ec | |
parent | e6a9693ab1710187eeb554ba7f4a2c3dd5557caa (diff) | |
download | llvm-3e31a5684a48748b469ecd2227490ca2d261bb7a.tar.gz llvm-3e31a5684a48748b469ecd2227490ca2d261bb7a.tar.bz2 llvm-3e31a5684a48748b469ecd2227490ca2d261bb7a.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202418 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/MC/MCObjectFileInfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/MC/MCObjectFileInfo.h b/include/llvm/MC/MCObjectFileInfo.h index cc5eb9eeeb..25246929ce 100644 --- a/include/llvm/MC/MCObjectFileInfo.h +++ b/include/llvm/MC/MCObjectFileInfo.h @@ -366,6 +366,10 @@ public: return Env; } + Reloc::Model getRelocM() const { + return RelocM; + } + private: Environment Env; Reloc::Model RelocM; |