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 | 05548eb174dd694b651de334b73197a62e5071f1 (patch) | |
| tree | d2525f7fce717bd26c25097a95d63f77cb3acccf /lib/CodeGen/AsmPrinter.cpp | |
| parent | 84e5f77880685d6e03d76474ae722a9f3aca1384 (diff) | |
| download | llvm-05548eb174dd694b651de334b73197a62e5071f1.tar.gz llvm-05548eb174dd694b651de334b73197a62e5071f1.tar.bz2 llvm-05548eb174dd694b651de334b73197a62e5071f1.tar.xz | |
Don't fill eh frames even though these are text sections.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
| -rw-r--r-- | lib/CodeGen/AsmPrinter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index 9cdae34833..80965020d0 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/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"; } |
