summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAssembler.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-12-06 03:48:09 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-12-06 03:48:09 +0000
commitbaf2f3b3eb3594a14f545b250302f05253fb358e (patch)
treebc7beb0dae1e2686c98cc0a3033f2bd08b5fcaca /llvm/lib/MC/MCAssembler.cpp
parent46e40188f7b0159b3c73341e3dd548382e32e47e (diff)
downloadbcm5719-llvm-baf2f3b3eb3594a14f545b250302f05253fb358e.tar.gz
bcm5719-llvm-baf2f3b3eb3594a14f545b250302f05253fb358e.zip
Remove the getAddress getter, initialize Ordinal in the constructor and use
that on the ELF writer to detect a section we created. llvm-svn: 120981
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r--llvm/lib/MC/MCAssembler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp
index c4e775e2c94..ac0f31f79eb 100644
--- a/llvm/lib/MC/MCAssembler.cpp
+++ b/llvm/lib/MC/MCAssembler.cpp
@@ -218,6 +218,7 @@ MCSectionData::MCSectionData() : Section(0) {}
MCSectionData::MCSectionData(const MCSection &_Section, MCAssembler *A)
: Section(&_Section),
+ Ordinal(~UINT32_C(0)),
Alignment(1),
Address(~UINT64_C(0)),
HasInstructions(false)
OpenPOWER on IntegriCloud