mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
make isVirtualSection a virtual method on MCSection. Chris' suggestion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -371,7 +371,7 @@ public:
|
||||
uint64_t SectionSize = Layout.getSectionSize(&SD);
|
||||
|
||||
// The offset is unused for virtual sections.
|
||||
if (Asm.getBackend().isVirtualSection(SD.getSection())) {
|
||||
if (SD.getSection().isVirtualSection()) {
|
||||
assert(Layout.getSectionFileSize(&SD) == 0 && "Invalid file size!");
|
||||
FileOffset = 0;
|
||||
}
|
||||
@@ -1191,7 +1191,7 @@ public:
|
||||
|
||||
VMSize = std::max(VMSize, Address + Size);
|
||||
|
||||
if (Asm.getBackend().isVirtualSection(SD.getSection()))
|
||||
if (SD.getSection().isVirtualSection())
|
||||
continue;
|
||||
|
||||
SectionDataSize = std::max(SectionDataSize, Address + Size);
|
||||
|
Reference in New Issue
Block a user