OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f747747
)
make the NullStreamer set the section on a label when emitted so that isDefined(...
author
Chris Lattner
<sabre@nondot.org>
Tue, 9 Mar 2010 23:12:18 +0000
(23:12 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 9 Mar 2010 23:12:18 +0000
(23:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98100
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/MCNullStreamer.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/MCNullStreamer.cpp
b/lib/MC/MCNullStreamer.cpp
index
ab61799
..
5f0c64a
100644
(file)
--- a/
lib/MC/MCNullStreamer.cpp
+++ b/
lib/MC/MCNullStreamer.cpp
@@
-29,7
+29,11
@@
namespace {
CurSection = Section;
}
- virtual void EmitLabel(MCSymbol *Symbol) {}
+ virtual void EmitLabel(MCSymbol *Symbol) {
+ assert(Symbol->isUndefined() && "Cannot define a symbol twice!");
+ assert(CurSection && "Cannot emit before setting section!");
+ Symbol->setSection(*CurSection);
+ }
virtual void EmitAssemblerFlag(MCAssemblerFlag Flag) {}