Remove unused argument.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 27 Mar 2014 20:41:17 +0000 (20:41 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 27 Mar 2014 20:41:17 +0000 (20:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204956 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCELFObjectWriter.h
lib/MC/ELFObjectWriter.cpp
lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp
lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
lib/Target/R600/MCTargetDesc/AMDGPUELFObjectWriter.cpp
lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp
lib/Target/SystemZ/MCTargetDesc/SystemZMCObjectWriter.cpp
lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp

index 9e7c2cce66fd5b8ad62afc970db03cbf61eecc5a..93bb7c4b4fe21813ebc063f01eec6c475bf79952 100644 (file)
@@ -72,8 +72,7 @@ public:
   virtual ~MCELFObjectTargetWriter() {}
 
   virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                                bool IsPCRel, bool IsRelocWithSymbol,
-                                int64_t Addend) const = 0;
+                                bool IsPCRel, bool IsRelocWithSymbol) const = 0;
   virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
                                          const MCValue &Target,
                                          const MCFragment &F,
index 277716c89b46e3e23c914a87331303e0b3497b90..0b35a921c075f1b96c18fd060dd48aa16b83c324 100644 (file)
@@ -182,7 +182,7 @@ class ELFObjectWriter : public MCObjectWriter {
                           bool IsPCRel, bool IsRelocWithSymbol,
                           int64_t Addend) const {
       return TargetObjectWriter->GetRelocType(Target, Fixup, IsPCRel,
-                                              IsRelocWithSymbol, Addend);
+                                              IsRelocWithSymbol);
     }
 
   public:
index 4bacd4e0090db30245c43e8b934736b0c7106863..f2c067e03ecddccdd74e56806107fa1cf1a06540 100644 (file)
@@ -28,9 +28,9 @@ public:
   virtual ~AArch64ELFObjectWriter();
 
 protected:
-  virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                                bool IsPCRel, bool IsRelocWithSymbol,
-                                int64_t Addend) const;
+  unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
+                        bool IsPCRel, bool IsRelocWithSymbol) const override;
+
 private:
 };
 }
@@ -46,8 +46,7 @@ AArch64ELFObjectWriter::~AArch64ELFObjectWriter()
 unsigned AArch64ELFObjectWriter::GetRelocType(const MCValue &Target,
                                               const MCFixup &Fixup,
                                               bool IsPCRel,
-                                              bool IsRelocWithSymbol,
-                                              int64_t Addend) const {
+                                              bool IsRelocWithSymbol) const {
   unsigned Type;
   if (IsPCRel) {
     switch ((unsigned)Fixup.getKind()) {
index d829394e09e7a628164d845719a963adbf5c2d42..b5bc4bd14b64c34df931a43999c34e6469d2a1b9 100644 (file)
@@ -35,8 +35,7 @@ namespace {
     virtual ~ARMELFObjectWriter();
 
     unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                          bool IsPCRel, bool IsRelocWithSymbol,
-                          int64_t Addend) const override;
+                          bool IsPCRel, bool IsRelocWithSymbol) const override;
     const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
                                    const MCValue &Target, const MCFragment &F,
                                    const MCFixup &Fixup,
@@ -143,8 +142,7 @@ const MCSymbol *ARMELFObjectWriter::ExplicitRelSym(const MCAssembler &Asm,
 unsigned ARMELFObjectWriter::GetRelocType(const MCValue &Target,
                                           const MCFixup &Fixup,
                                           bool IsPCRel,
-                                          bool IsRelocWithSymbol,
-                                          int64_t Addend) const {
+                                          bool IsRelocWithSymbol) const {
   return GetRelocTypeInner(Target, Fixup, IsPCRel);
 }
 
index aa9b42337cb194e62c565e7e213edcd8b343e80a..dd41ddf6c98c5aa5a182ef1a93c30cd6941b0f9d 100644 (file)
@@ -39,9 +39,8 @@ namespace {
 
     virtual ~MipsELFObjectWriter();
 
-    virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                                  bool IsPCRel, bool IsRelocWithSymbol,
-                                  int64_t Addend) const;
+    unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
+                          bool IsPCRel, bool IsRelocWithSymbol) const override;
     virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
                                            const MCValue &Target,
                                            const MCFragment &F,
@@ -78,8 +77,7 @@ const MCSymbol *MipsELFObjectWriter::ExplicitRelSym(const MCAssembler &Asm,
 unsigned MipsELFObjectWriter::GetRelocType(const MCValue &Target,
                                            const MCFixup &Fixup,
                                            bool IsPCRel,
-                                           bool IsRelocWithSymbol,
-                                           int64_t Addend) const {
+                                           bool IsRelocWithSymbol) const {
   // determine the type of the relocation
   unsigned Type = (unsigned)ELF::R_MIPS_NONE;
   unsigned Kind = (unsigned)Fixup.getKind();
index 0df4b97de674ca36c5f01e84bb63c86d8c6a0186..00378f97c8a02832a21dc6f2d080af85636c279c 100644 (file)
@@ -28,9 +28,8 @@ namespace {
     virtual unsigned getRelocTypeInner(const MCValue &Target,
                                        const MCFixup &Fixup,
                                        bool IsPCRel) const;
-    virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                                  bool IsPCRel, bool IsRelocWithSymbol,
-                                  int64_t Addend) const;
+    unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
+                          bool IsPCRel, bool IsRelocWithSymbol) const override;
     virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
                                            const MCValue &Target,
                                            const MCFragment &F,
@@ -384,8 +383,7 @@ unsigned PPCELFObjectWriter::getRelocTypeInner(const MCValue &Target,
 unsigned PPCELFObjectWriter::GetRelocType(const MCValue &Target,
                                           const MCFixup &Fixup,
                                           bool IsPCRel,
-                                          bool IsRelocWithSymbol,
-                                          int64_t Addend) const {
+                                          bool IsRelocWithSymbol) const {
   return getRelocTypeInner(Target, Fixup, IsPCRel);
 }
 
index 48fac9fa7747f3d533774a572a931d04dfd56c40..88556ba8a1ec2b53fd0898ab2e5c14b0ea39a7b5 100644 (file)
@@ -19,9 +19,8 @@ class AMDGPUELFObjectWriter : public MCELFObjectTargetWriter {
 public:
   AMDGPUELFObjectWriter();
 protected:
-  virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                                bool IsPCRel, bool IsRelocWithSymbol,
-                                int64_t Addend) const {
+  unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
+                        bool IsPCRel, bool IsRelocWithSymbol) const override {
     llvm_unreachable("Not implemented");
   }
 
index 3a9929bc4c03669681d06f21be96660b213561f9..3ab878ab2c28e3c1ef729a68d277170c123ec86f 100644 (file)
@@ -28,9 +28,8 @@ namespace {
 
     virtual ~SparcELFObjectWriter() {}
   protected:
-    virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                                  bool IsPCRel, bool IsRelocWithSymbol,
-                                  int64_t Addend) const;
+    unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
+                          bool IsPCRel, bool IsRelocWithSymbol) const override;
 
     virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
                                            const MCValue &Target,
@@ -40,12 +39,9 @@ namespace {
   };
 }
 
-
 unsigned SparcELFObjectWriter::GetRelocType(const MCValue &Target,
-                                            const MCFixup &Fixup,
-                                            bool IsPCRel,
-                                            bool IsRelocWithSymbol,
-                                            int64_t Addend) const {
+                                            const MCFixup &Fixup, bool IsPCRel,
+                                            bool IsRelocWithSymbol) const {
 
   if (const SparcMCExpr *SExpr = dyn_cast<SparcMCExpr>(Fixup.getValue())) {
     if (SExpr->getKind() == SparcMCExpr::VK_Sparc_R_DISP32)
index ddc1379e3401974e354675ddaaf66b2737eca3f3..6fa81ec91add4ec820c118dd9b1e112e3be2eaee 100644 (file)
@@ -25,8 +25,7 @@ public:
 protected:
   // Override MCELFObjectTargetWriter.
   unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                        bool IsPCRel, bool IsRelocWithSymbol,
-                        int64_t Addend) const override;
+                        bool IsPCRel, bool IsRelocWithSymbol) const override;
   const MCSymbol *ExplicitRelSym(const MCAssembler &Asm, const MCValue &Target,
                                  const MCFragment &F, const MCFixup &Fixup,
                                  bool IsPCRel) const override;
@@ -84,10 +83,8 @@ static unsigned getPLTReloc(unsigned Kind) {
 }
 
 unsigned SystemZObjectWriter::GetRelocType(const MCValue &Target,
-                                           const MCFixup &Fixup,
-                                           bool IsPCRel,
-                                           bool IsRelocWithSymbol,
-                                           int64_t Addend) const {
+                                           const MCFixup &Fixup, bool IsPCRel,
+                                           bool IsRelocWithSymbol) const {
   MCSymbolRefExpr::VariantKind Modifier = Fixup.getAccessVariant();
   unsigned Kind = Fixup.getKind();
   switch (Modifier) {
index 618b0e6e1ed63723466728a5abf7dee6f21489ab..0b88416307d5398597dd0e09c51d038c6347bfaf 100644 (file)
@@ -25,8 +25,7 @@ namespace {
     virtual ~X86ELFObjectWriter();
   protected:
     unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                          bool IsPCRel, bool IsRelocWithSymbol,
-                          int64_t Addend) const override;
+                          bool IsPCRel, bool IsRelocWithSymbol) const override;
   };
 }
 
@@ -42,8 +41,7 @@ X86ELFObjectWriter::~X86ELFObjectWriter()
 unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
                                           const MCFixup &Fixup,
                                           bool IsPCRel,
-                                          bool IsRelocWithSymbol,
-                                          int64_t Addend) const {
+                                          bool IsRelocWithSymbol) const {
   // determine the type of the relocation
 
   MCSymbolRefExpr::VariantKind Modifier = Fixup.getAccessVariant();