Add support for expressions in .sleb/.uleb directives.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118023 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2010-11-02 17:22:24 +00:00
parent 8bc9ef77b7
commit 3ff57094a7
12 changed files with 236 additions and 95 deletions

View File

@ -152,6 +152,18 @@ public:
return Child->EmitIntValue(Value, Size, AddrSpace);
}
virtual void EmitULEB128Value(const MCExpr *Value,
unsigned AddrSpace = 0) {
LogCall("EmitULEB128Value");
return Child->EmitULEB128Value(Value, AddrSpace);
}
virtual void EmitSLEB128Value(const MCExpr *Value,
unsigned AddrSpace = 0) {
LogCall("EmitSLEB128Value");
return Child->EmitSLEB128Value(Value, AddrSpace);
}
virtual void EmitGPRel32Value(const MCExpr *Value) {
LogCall("EmitGPRel32Value");
return Child->EmitGPRel32Value(Value);