[llvm-commits] [llvm] r120981 - in /llvm/trunk: include/llvm/MC/MCAssembler.h lib/MC/ELFObjectWriter.cpp lib/MC/MCAssembler.cpp
Rafael Espindola
rafael.espindola at gmail.com
Sun Dec 5 19:48:10 PST 2010
Author: rafael
Date: Sun Dec 5 21:48:09 2010
New Revision: 120981
URL: http://llvm.org/viewvc/llvm-project?rev=120981&view=rev
Log:
Remove the getAddress getter, initialize Ordinal in the constructor and use
that on the ELF writer to detect a section we created.
Modified:
llvm/trunk/include/llvm/MC/MCAssembler.h
llvm/trunk/lib/MC/ELFObjectWriter.cpp
llvm/trunk/lib/MC/MCAssembler.cpp
Modified: llvm/trunk/include/llvm/MC/MCAssembler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCAssembler.h?rev=120981&r1=120980&r2=120981&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCAssembler.h (original)
+++ llvm/trunk/include/llvm/MC/MCAssembler.h Sun Dec 5 21:48:09 2010
@@ -476,8 +476,6 @@
unsigned getLayoutOrder() const { return LayoutOrder; }
void setLayoutOrder(unsigned Value) { LayoutOrder = Value; }
- uint64_t getAddress() const { return Address; }
-
/// @name Fragment Access
/// @{
Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=120981&r1=120980&r2=120981&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Sun Dec 5 21:48:09 2010
@@ -1285,7 +1285,7 @@
}
static bool IsELFMetaDataSection(const MCSectionData &SD) {
- return SD.getAddress() == ~UINT64_C(0) &&
+ return SD.getOrdinal() == ~UINT32_C(0) &&
!SD.getSection().isVirtualSection();
}
Modified: llvm/trunk/lib/MC/MCAssembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAssembler.cpp?rev=120981&r1=120980&r2=120981&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAssembler.cpp (original)
+++ llvm/trunk/lib/MC/MCAssembler.cpp Sun Dec 5 21:48:09 2010
@@ -218,6 +218,7 @@
MCSectionData::MCSectionData(const MCSection &_Section, MCAssembler *A)
: Section(&_Section),
+ Ordinal(~UINT32_C(0)),
Alignment(1),
Address(~UINT64_C(0)),
HasInstructions(false)
More information about the llvm-commits
mailing list