From 3e31a5684a48748b469ecd2227490ca2d261bb7a Mon Sep 17 00:00:00 2001 From: Matheus Almeida Date: Thu, 27 Feb 2014 18:39:53 +0000 Subject: [PATCH] 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 --- include/llvm/MC/MCObjectFileInfo.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/llvm/MC/MCObjectFileInfo.h b/include/llvm/MC/MCObjectFileInfo.h index cc5eb9eeeb9..25246929ce5 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;