diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-06 03:48:09 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-06 03:48:09 +0000 |
commit | f8803fe4177739f9a6900198f601808eb27934d9 (patch) | |
tree | 98dcc5a9293c59cf7214520fef87c2f25917ca68 /lib/MC/ELFObjectWriter.cpp | |
parent | f3faf92636a7da01d3cfff1e969988b5fff795eb (diff) |
Remove the getAddress getter, initialize Ordinal in the constructor and use
that on the ELF writer to detect a section we created.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/ELFObjectWriter.cpp')
-rw-r--r-- | lib/MC/ELFObjectWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index 1fc844cc4a..bd6c5f8549 100644 --- a/lib/MC/ELFObjectWriter.cpp +++ b/lib/MC/ELFObjectWriter.cpp @@ -1285,7 +1285,7 @@ void ELFObjectWriter::WriteSection(MCAssembler &Asm, } static bool IsELFMetaDataSection(const MCSectionData &SD) { - return SD.getAddress() == ~UINT64_C(0) && + return SD.getOrdinal() == ~UINT32_C(0) && !SD.getSection().isVirtualSection(); } |