diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-02-29 19:36:59 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-02-29 19:36:59 +0000 |
| commit | 26edb59d979fc3e6b8fdc4c7f893802f9e33e8e7 (patch) | |
| tree | 1646a8def032c045a7c839c0527ea5f0b4d9a754 /llvm/lib/CodeGen/AsmPrinter.cpp | |
| parent | 6555623cebeee40ef746993e29df8612a3d16bd5 (diff) | |
| download | bcm5719-llvm-26edb59d979fc3e6b8fdc4c7f893802f9e33e8e7.tar.gz bcm5719-llvm-26edb59d979fc3e6b8fdc4c7f893802f9e33e8e7.zip | |
Don't fill eh frames even though these are text sections.
llvm-svn: 47765
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp index 9cdae348338..80965020d0d 100644 --- a/llvm/lib/CodeGen/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter.cpp @@ -684,7 +684,8 @@ void AsmPrinter::EmitFile(unsigned Number, const std::string &Name) const { // Align = std::max(Align, ForcedAlignBits); // void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV, - unsigned ForcedAlignBits) const { + unsigned ForcedAlignBits, + bool UseFillExpr) const { if (GV && GV->getAlignment()) NumBits = Log2_32(GV->getAlignment()); NumBits = std::max(NumBits, ForcedAlignBits); @@ -694,7 +695,7 @@ void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV, O << TAI->getAlignDirective() << NumBits; unsigned FillValue = TAI->getTextAlignFillValue(); - bool UseFillExpr = IsInTextSection && FillValue; + UseFillExpr &= IsInTextSection && FillValue; if (UseFillExpr) O << ",0x" << std::hex << FillValue << std::dec; O << "\n"; } |

