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.

llvm-svn: 202418
This commit is contained in:
Matheus Almeida 2014-02-27 18:39:53 +00:00
parent 8bdab43964
commit 7fe38e1ade
1 changed files with 4 additions and 0 deletions

View File

@ -366,6 +366,10 @@ public:
return Env;
}
Reloc::Model getRelocM() const {
return RelocM;
}
private:
Environment Env;
Reloc::Model RelocM;