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:
91fb407
)
There is no need to use .set here.
author
Devang Patel
<dpatel@apple.com>
Thu, 2 Sep 2010 23:01:10 +0000
(23:01 +0000)
committer
Devang Patel
<dpatel@apple.com>
Thu, 2 Sep 2010 23:01:10 +0000
(23:01 +0000)
Thanks Chris!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112900
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 9078f282025f1bc85b688b83aef7e10402f78ad3..d358ab20ffc53d42103bb6acfc67ea92cb0345bb 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@
-1232,14
+1232,7
@@
void AsmPrinter::EmitLabelPlusOffset(const MCSymbol *Label, uint64_t Offset,
MCConstantExpr::Create(Offset, OutContext),
OutContext);
- if (!MAI->hasSetDirective())
- OutStreamer.EmitValue(Plus, 4, 0/*AddrSpace*/);
- else {
- // Otherwise, emit with .set (aka assignment).
- MCSymbol *SetLabel = GetTempSymbol("set", SetCounter++);
- OutStreamer.EmitAssignment(SetLabel, Plus);
- OutStreamer.EmitSymbolValue(SetLabel, 4, 0/*AddrSpace*/);
- }
+ OutStreamer.EmitValue(Plus, 4, 0/*AddrSpace*/);
}