diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-22 22:56:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-22 22:56:55 +0000 |
commit | 2303145081cd80fe4c57b30dc5ad7bc74edfa38b (patch) | |
tree | ca5384400b03be52f9b889c1a9291dd90f1054ff /llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | |
parent | ac277eb930da351e420a175fb016d704d453dd78 (diff) | |
download | bcm5719-llvm-2303145081cd80fe4c57b30dc5ad7bc74edfa38b.tar.gz bcm5719-llvm-2303145081cd80fe4c57b30dc5ad7bc74edfa38b.zip |
move sleb printing out of asmprinter into dwarf printer, make clients
handle the comment better, MCize the non-.sleb case.
llvm-svn: 94244
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp index 43b1abf05da..0dfb6b6d79c 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -177,8 +177,7 @@ void DwarfException::EmitCIE(const Function *PersonalityFn, unsigned Index) { // Round out reader. Asm->EmitULEB128Bytes(1); Asm->EOL("CIE Code Alignment Factor"); - Asm->EmitSLEB128Bytes(stackGrowth); - Asm->EOL("CIE Data Alignment Factor"); + EmitSLEB128(stackGrowth, "CIE Data Alignment Factor"); Asm->EmitInt8(RI->getDwarfRegNum(RI->getRARegister(), true)); Asm->EOL("CIE Return Address Column"); @@ -894,17 +893,13 @@ void DwarfException::EmitExceptionTable() { // // Used by the runtime to match the type of the thrown exception to the // type of the catch clauses or the types in the exception specification. - - Asm->EmitSLEB128Bytes(Action.ValueForTypeID); - Asm->EOL("TypeInfo index"); + EmitSLEB128(Action.ValueForTypeID, "TypeInfo index"); // Action Record // // Self-relative signed displacement in bytes of the next action record, // or 0 if there is no next action record. - - Asm->EmitSLEB128Bytes(Action.NextAction); - Asm->EOL("Next action"); + EmitSLEB128(Action.NextAction, "Next action"); } // Emit the Catch TypeInfos. |