diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-22 22:09:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-22 22:09:00 +0000 |
commit | ad65348ad547f41c654d8df74fd6a678c3b42a74 (patch) | |
tree | 9ddf66fe1c6bb974b1c85ad732063661e0ed4fbf /lib/CodeGen/AsmPrinter/DwarfException.cpp | |
parent | 052348ee1a841a7ba39d49ccb39b66903908f7e3 (diff) | |
download | external_llvm-ad65348ad547f41c654d8df74fd6a678c3b42a74.zip external_llvm-ad65348ad547f41c654d8df74fd6a678c3b42a74.tar.gz external_llvm-ad65348ad547f41c654d8df74fd6a678c3b42a74.tar.bz2 |
inline away the trivial AsmPrinter::EOL() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfException.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index 615be0e..7cb80a6 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -30,8 +30,8 @@ #include "llvm/Target/TargetOptions.h" #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Support/Dwarf.h" +#include "llvm/Support/FormattedStream.h" #include "llvm/Support/Timer.h" -#include "llvm/Support/raw_ostream.h" #include "llvm/ADT/SmallString.h" #include "llvm/ADT/StringExtras.h" using namespace llvm; @@ -214,8 +214,7 @@ void DwarfException::EmitCIE(const Function *PersonalityFn, unsigned Index) { // holes which confuse readers of eh_frame. Asm->EmitAlignment(TD->getPointerSize() == 4 ? 2 : 3, 0, 0, false); EmitLabel("eh_frame_common_end", Index); - - Asm->EOL(); + Asm->O << '\n'; } /// EmitFDE - Emit the Frame Description Entry (FDE) for the function. @@ -325,12 +324,10 @@ void DwarfException::EmitFDE(const FunctionEHFrameInfo &EHFrameInfo) { // on unused functions (calling undefined externals) being dead-stripped to // link correctly. Yes, there really is. if (MMI->isUsedFunction(EHFrameInfo.function)) - if (const char *UsedDirective = MAI->getUsedDirective()) { + if (const char *UsedDirective = MAI->getUsedDirective()) O << UsedDirective << *EHFrameInfo.FunctionEHSym << "\n\n"; - } } - - Asm->EOL(); + Asm->O << '\n'; } /// SharedTypeIds - How many leading type ids two landing pads have in common. @@ -942,7 +939,7 @@ void DwarfException::EmitExceptionTable() { if (TypeID != 0) Asm->EOL("Exception specification"); else - Asm->EOL(); + Asm->O << '\n'; } Asm->EmitAlignment(2, 0, 0, false); |