aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-20 01:58:40 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-20 01:58:40 +0000
commit873decbb37aa31653d9907455386f3c695ee150b (patch)
tree745f54d416eb48034e788cb678e92f68b483bede /lib/MC
parentcaa608e97c07ffe988dd7c76516b9f81ad8ffc0a (diff)
downloadexternal_llvm-873decbb37aa31653d9907455386f3c695ee150b.zip
external_llvm-873decbb37aa31653d9907455386f3c695ee150b.tar.gz
external_llvm-873decbb37aa31653d9907455386f3c695ee150b.tar.bz2
Better fix for r98994, MachObjectWriterImpl wasn't intended to be virtual.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MachObjectWriter.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp
index 9ea79f0..4b08c22 100644
--- a/lib/MC/MachObjectWriter.cpp
+++ b/lib/MC/MachObjectWriter.cpp
@@ -192,8 +192,6 @@ public:
: Writer(_Writer), OS(Writer->getStream()), Is64Bit(_Is64Bit) {
}
- virtual ~MachObjectWriterImpl() {}
-
void Write8(uint8_t Value) { Writer->Write8(Value); }
void Write16(uint16_t Value) { Writer->Write16(Value); }
void Write32(uint32_t Value) { Writer->Write32(Value); }
@@ -685,10 +683,9 @@ public:
Relocations[Fragment.getParent()].push_back(MRE);
}
- virtual void RecordRelocation(const MCAssembler &Asm,
- const MCDataFragment &Fragment,
- const MCAsmFixup &Fixup, MCValue Target,
- uint64_t &FixedValue) {
+ void RecordRelocation(const MCAssembler &Asm, const MCDataFragment &Fragment,
+ const MCAsmFixup &Fixup, MCValue Target,
+ uint64_t &FixedValue) {
if (Is64Bit) {
RecordX86_64Relocation(Asm, Fragment, Fixup, Target, FixedValue);
return;
@@ -914,7 +911,7 @@ public:
StringTable += '\x00';
}
- virtual void ExecutePostLayoutBinding(MCAssembler &Asm) {
+ void ExecutePostLayoutBinding(MCAssembler &Asm) {
// Create symbol data for any indirect symbols.
BindIndirectSymbols(Asm);
@@ -923,7 +920,7 @@ public:
UndefinedSymbolData);
}
- virtual void WriteObject(const MCAssembler &Asm) {
+ void WriteObject(const MCAssembler &Asm) {
unsigned NumSections = Asm.size();
// The section data starts after the header, the segment load command (and