projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec167fd
)
use OutStreamer.EmitCodeAlignment for alignment in the text
author
Chris Lattner
<sabre@nondot.org>
Tue, 23 Feb 2010 18:46:22 +0000
(18:46 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 23 Feb 2010 18:46:22 +0000
(18:46 +0000)
segment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96967
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 9f905db70e975848722fd530a9240402a010e64b..bd2b1b61971a85d7cf146ed71de8cea5c67dea78 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@
-917,11
+917,10
@@
void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV,
if (NumBits == 0) return; // No need to emit alignment.
- unsigned FillValue = 0;
if (getCurrentSection()->getKind().isText())
-
FillValue = MAI->getTextAlignFillValue(
);
-
-
OutStreamer.EmitValueToAlignment(1 << NumBits, FillValue
, 1, 0);
+
OutStreamer.EmitCodeAlignment(1 << NumBits
);
+ else
+
OutStreamer.EmitValueToAlignment(1 << NumBits, 0
, 1, 0);
}
/// LowerConstant - Lower the specified LLVM Constant to an MCExpr.