summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-27 23:58:10 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-27 23:58:10 +0000
commit8d38b8d20cd0ab062b5c52a724ff9c7bf9a32d4b (patch)
tree87ca247872425f77a2545e52b4cd8eea56b98f9e /llvm
parent3082c01d6821b980feed968614ecfb0e082c258e (diff)
downloadbcm5719-llvm-8d38b8d20cd0ab062b5c52a724ff9c7bf9a32d4b.tar.gz
bcm5719-llvm-8d38b8d20cd0ab062b5c52a724ff9c7bf9a32d4b.zip
Revert r80305, I forgot a dependent change.
--- Reverse-merging r80305 into '.': U tools/llvm-mc/AsmParser.cpp llvm-svn: 80309
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/llvm-mc/AsmParser.cpp26
1 files changed, 17 insertions, 9 deletions
diff --git a/llvm/tools/llvm-mc/AsmParser.cpp b/llvm/tools/llvm-mc/AsmParser.cpp
index 9f219925b0f..2c855d950fd 100644
--- a/llvm/tools/llvm-mc/AsmParser.cpp
+++ b/llvm/tools/llvm-mc/AsmParser.cpp
@@ -1287,10 +1287,15 @@ bool AsmParser::ParseDirectiveDarwinZerofill() {
// If this is the end of the line all that was wanted was to create the
// the section but with no symbol.
if (Lexer.is(AsmToken::EndOfStatement)) {
+ // FIXME: CACHE THIS.
+ MCSection *S = 0; //Ctx.GetSection(Section);
+ if (S == 0)
+ S = MCSectionMachO::Create(Segment, Section,
+ MCSectionMachO::S_ZEROFILL, 0,
+ SectionKind(), Ctx);
+
// Create the zerofill section but no symbol
- Out.EmitZerofill(getMachOSection(Segment, Section,
- MCSectionMachO::S_ZEROFILL, 0,
- SectionKind()));
+ Out.EmitZerofill(S);
return false;
}
@@ -1343,13 +1348,16 @@ bool AsmParser::ParseDirectiveDarwinZerofill() {
if (!Sym->isUndefined())
return Error(IDLoc, "invalid symbol redefinition");
- // Create the zerofill Symbol with Size and Pow2Alignment
- //
// FIXME: Arch specific.
- Out.EmitZerofill(getMachOSection(Segment, Section,
- MCSectionMachO::S_ZEROFILL, 0,
- SectionKind()),
- Sym, Size, Pow2Alignment);
+ // FIXME: CACHE.
+ MCSection *S = 0; //Ctx.GetSection(Section);
+ if (S == 0)
+ S = MCSectionMachO::Create(Segment, Section,
+ MCSectionMachO::S_ZEROFILL, 0,
+ SectionKind(), Ctx);
+
+ // Create the zerofill Symbol with Size and Pow2Alignment
+ Out.EmitZerofill(S, Sym, Size, Pow2Alignment);
return false;
}
OpenPOWER on IntegriCloud