Add accessors for all private members of DisasmContext.

LLVM should be -Wunused-private-field clean now.

llvm-svn: 158103
This commit is contained in:
Benjamin Kramer 2012-06-06 20:45:10 +00:00
parent 05ff4667eb
commit 3f87e3b707
1 changed files with 8 additions and 0 deletions

View File

@ -99,6 +99,14 @@ public:
DisAsm.reset(disAsm);
IP.reset(iP);
}
const std::string &getTripleName() const { return TripleName; }
void *getDisInfo() const { return DisInfo; }
int getTagType() const { return TagType; }
LLVMOpInfoCallback getGetOpInfo() const { return GetOpInfo; }
LLVMSymbolLookupCallback getSymbolLookupCallback() const {
return SymbolLookUp;
}
const Target *getTarget() const { return TheTarget; }
const MCDisassembler *getDisAsm() const { return DisAsm.get(); }
const MCAsmInfo *getAsmInfo() const { return MAI.get(); }
MCInstPrinter *getIP() { return IP.get(); }