summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/ELFObjectWriter.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-12-21 14:26:29 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-12-21 14:26:29 +0000
commit9e252bf0387922e0c7f1873b644902da7eecbec6 (patch)
tree31ec653c154cfcc7e1b9407661f6f6a4e04ca5d2 /llvm/lib/MC/ELFObjectWriter.h
parentb761ff3e24fc70885419d1c29b3bf4a8dd2f976e (diff)
downloadbcm5719-llvm-9e252bf0387922e0c7f1873b644902da7eecbec6.tar.gz
bcm5719-llvm-9e252bf0387922e0c7f1873b644902da7eecbec6.zip
Small refactoring so that RelocNeedsGOT can stay in the target independent
side when the target specific bits are moved to the Target directory. llvm-svn: 147053
Diffstat (limited to 'llvm/lib/MC/ELFObjectWriter.h')
-rw-r--r--llvm/lib/MC/ELFObjectWriter.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/llvm/lib/MC/ELFObjectWriter.h b/llvm/lib/MC/ELFObjectWriter.h
index 9adf0b1bd0f..3ba722c2703 100644
--- a/llvm/lib/MC/ELFObjectWriter.h
+++ b/llvm/lib/MC/ELFObjectWriter.h
@@ -351,7 +351,7 @@ class ELFObjectWriter : public MCObjectWriter {
protected:
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
bool IsPCRel, bool IsRelocWithSymbol,
- int64_t Addend) = 0;
+ int64_t Addend) const = 0;
virtual void adjustFixupOffset(const MCFixup &Fixup,
uint64_t &RelocOffset) {}
};
@@ -368,7 +368,7 @@ class ELFObjectWriter : public MCObjectWriter {
protected:
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
bool IsPCRel, bool IsRelocWithSymbol,
- int64_t Addend);
+ int64_t Addend) const;
};
@@ -395,11 +395,10 @@ class ELFObjectWriter : public MCObjectWriter {
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
bool IsPCRel, bool IsRelocWithSymbol,
- int64_t Addend);
+ int64_t Addend) const;
private:
unsigned GetRelocTypeInner(const MCValue &Target,
const MCFixup &Fixup, bool IsPCRel) const;
-
};
//===- PPCELFObjectWriter -------------------------------------------===//
@@ -414,7 +413,7 @@ class ELFObjectWriter : public MCObjectWriter {
protected:
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
bool IsPCRel, bool IsRelocWithSymbol,
- int64_t Addend);
+ int64_t Addend) const;
virtual void adjustFixupOffset(const MCFixup &Fixup, uint64_t &RelocOffset);
};
@@ -430,7 +429,7 @@ class ELFObjectWriter : public MCObjectWriter {
protected:
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
bool IsPCRel, bool IsRelocWithSymbol,
- int64_t Addend);
+ int64_t Addend) const;
};
//===- MipsELFObjectWriter -------------------------------------------===//
@@ -453,7 +452,7 @@ class ELFObjectWriter : public MCObjectWriter {
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
bool IsPCRel, bool IsRelocWithSymbol,
- int64_t Addend);
+ int64_t Addend) const;
};
}
OpenPOWER on IntegriCloud