Remove another unused argument.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 27 Mar 2014 20:49:35 +0000 (20:49 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 27 Mar 2014 20:49:35 +0000 (20:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204961 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 93bb7c4b4fe21813ebc063f01eec6c475bf79952..78435e6f47fd6ebc6bc2ab2623b77d5a90e59483 100644 (file)
@@ -72,7 +72,7 @@ public:
   virtual ~MCELFObjectTargetWriter() {}
 
   virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                                bool IsPCRel, bool IsRelocWithSymbol) const = 0;
+                                bool IsPCRel) const = 0;
   virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
                                          const MCValue &Target,
                                          const MCFragment &F,
index 0b35a921c075f1b96c18fd060dd48aa16b83c324..4ebfc4de557ec0beeccf0714a0c0d7a6406bc424 100644 (file)
@@ -179,10 +179,8 @@ class ELFObjectWriter : public MCObjectWriter {
       return TargetObjectWriter->hasRelocationAddend();
     }
     unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                          bool IsPCRel, bool IsRelocWithSymbol,
-                          int64_t Addend) const {
-      return TargetObjectWriter->GetRelocType(Target, Fixup, IsPCRel,
-                                              IsRelocWithSymbol);
+                          bool IsPCRel) const {
+      return TargetObjectWriter->GetRelocType(Target, Fixup, IsPCRel);
     }
 
   public:
@@ -839,8 +837,7 @@ void ELFObjectWriter::RecordRelocation(const MCAssembler &Asm,
   }
 
   FixedValue = Value;
-  unsigned Type = GetRelocType(Target, Fixup, IsPCRel,
-                               (RelocSymbol != 0), Addend);
+  unsigned Type = GetRelocType(Target, Fixup, IsPCRel);
   MCSymbolRefExpr::VariantKind Modifier = Target.isAbsolute() ?
     MCSymbolRefExpr::VK_None : Target.getSymA()->getKind();
   if (RelocNeedsGOT(Modifier))
index f2c067e03ecddccdd74e56806107fa1cf1a06540..a5fe9141e655e248bf051ccb344dfcc001f129b2 100644 (file)
@@ -29,7 +29,7 @@ public:
 
 protected:
   unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                        bool IsPCRel, bool IsRelocWithSymbol) const override;
+                        bool IsPCRel) const override;
 
 private:
 };
@@ -45,8 +45,7 @@ AArch64ELFObjectWriter::~AArch64ELFObjectWriter()
 
 unsigned AArch64ELFObjectWriter::GetRelocType(const MCValue &Target,
                                               const MCFixup &Fixup,
-                                              bool IsPCRel,
-                                              bool IsRelocWithSymbol) const {
+                                              bool IsPCRel) const {
   unsigned Type;
   if (IsPCRel) {
     switch ((unsigned)Fixup.getKind()) {
index b5bc4bd14b64c34df931a43999c34e6469d2a1b9..fb1380f872660210d8b3c83ac39b90059ddcc6e4 100644 (file)
@@ -35,7 +35,7 @@ namespace {
     virtual ~ARMELFObjectWriter();
 
     unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                          bool IsPCRel, bool IsRelocWithSymbol) const override;
+                          bool IsPCRel) const override;
     const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
                                    const MCValue &Target, const MCFragment &F,
                                    const MCFixup &Fixup,
@@ -141,8 +141,7 @@ const MCSymbol *ARMELFObjectWriter::ExplicitRelSym(const MCAssembler &Asm,
 // offset
 unsigned ARMELFObjectWriter::GetRelocType(const MCValue &Target,
                                           const MCFixup &Fixup,
-                                          bool IsPCRel,
-                                          bool IsRelocWithSymbol) const {
+                                          bool IsPCRel) const {
   return GetRelocTypeInner(Target, Fixup, IsPCRel);
 }
 
index dd41ddf6c98c5aa5a182ef1a93c30cd6941b0f9d..ce763367e29790faae521cfb84b9b301be0a2de7 100644 (file)
@@ -40,7 +40,7 @@ namespace {
     virtual ~MipsELFObjectWriter();
 
     unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                          bool IsPCRel, bool IsRelocWithSymbol) const override;
+                          bool IsPCRel) const override;
     virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
                                            const MCValue &Target,
                                            const MCFragment &F,
@@ -76,8 +76,7 @@ const MCSymbol *MipsELFObjectWriter::ExplicitRelSym(const MCAssembler &Asm,
 
 unsigned MipsELFObjectWriter::GetRelocType(const MCValue &Target,
                                            const MCFixup &Fixup,
-                                           bool IsPCRel,
-                                           bool IsRelocWithSymbol) const {
+                                           bool IsPCRel) const {
   // determine the type of the relocation
   unsigned Type = (unsigned)ELF::R_MIPS_NONE;
   unsigned Kind = (unsigned)Fixup.getKind();
index 00378f97c8a02832a21dc6f2d080af85636c279c..b5c5e194fec514eddbd3d36425f08b1270e7711f 100644 (file)
@@ -29,7 +29,7 @@ namespace {
                                        const MCFixup &Fixup,
                                        bool IsPCRel) const;
     unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                          bool IsPCRel, bool IsRelocWithSymbol) const override;
+                          bool IsPCRel) const override;
     virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
                                            const MCValue &Target,
                                            const MCFragment &F,
@@ -382,8 +382,7 @@ unsigned PPCELFObjectWriter::getRelocTypeInner(const MCValue &Target,
 
 unsigned PPCELFObjectWriter::GetRelocType(const MCValue &Target,
                                           const MCFixup &Fixup,
-                                          bool IsPCRel,
-                                          bool IsRelocWithSymbol) const {
+                                          bool IsPCRel) const {
   return getRelocTypeInner(Target, Fixup, IsPCRel);
 }
 
index 88556ba8a1ec2b53fd0898ab2e5c14b0ea39a7b5..53b0e85751de195da018367357ae4b720e03abc9 100644 (file)
@@ -20,7 +20,7 @@ public:
   AMDGPUELFObjectWriter();
 protected:
   unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                        bool IsPCRel, bool IsRelocWithSymbol) const override {
+                        bool IsPCRel) const override {
     llvm_unreachable("Not implemented");
   }
 
index 3ab878ab2c28e3c1ef729a68d277170c123ec86f..bb93b904ca04277939c047eebbdcda47d2cb3867 100644 (file)
@@ -29,7 +29,7 @@ namespace {
     virtual ~SparcELFObjectWriter() {}
   protected:
     unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                          bool IsPCRel, bool IsRelocWithSymbol) const override;
+                          bool IsPCRel) const override;
 
     virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
                                            const MCValue &Target,
@@ -40,8 +40,8 @@ namespace {
 }
 
 unsigned SparcELFObjectWriter::GetRelocType(const MCValue &Target,
-                                            const MCFixup &Fixup, bool IsPCRel,
-                                            bool IsRelocWithSymbol) const {
+                                            const MCFixup &Fixup,
+                                            bool IsPCRel) const {
 
   if (const SparcMCExpr *SExpr = dyn_cast<SparcMCExpr>(Fixup.getValue())) {
     if (SExpr->getKind() == SparcMCExpr::VK_Sparc_R_DISP32)
index 6fa81ec91add4ec820c118dd9b1e112e3be2eaee..76e1d24a93703e0fe53d113d26999bdb87cceeda 100644 (file)
@@ -25,7 +25,7 @@ public:
 protected:
   // Override MCELFObjectTargetWriter.
   unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                        bool IsPCRel, bool IsRelocWithSymbol) const override;
+                        bool IsPCRel) const override;
   const MCSymbol *ExplicitRelSym(const MCAssembler &Asm, const MCValue &Target,
                                  const MCFragment &F, const MCFixup &Fixup,
                                  bool IsPCRel) const override;
@@ -83,8 +83,8 @@ static unsigned getPLTReloc(unsigned Kind) {
 }
 
 unsigned SystemZObjectWriter::GetRelocType(const MCValue &Target,
-                                           const MCFixup &Fixup, bool IsPCRel,
-                                           bool IsRelocWithSymbol) const {
+                                           const MCFixup &Fixup,
+                                           bool IsPCRel) const {
   MCSymbolRefExpr::VariantKind Modifier = Fixup.getAccessVariant();
   unsigned Kind = Fixup.getKind();
   switch (Modifier) {
index 0b88416307d5398597dd0e09c51d038c6347bfaf..c44d88d48b6fb8cebbd9960bf5b04bdaf9073cf4 100644 (file)
@@ -25,7 +25,7 @@ namespace {
     virtual ~X86ELFObjectWriter();
   protected:
     unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
-                          bool IsPCRel, bool IsRelocWithSymbol) const override;
+                          bool IsPCRel) const override;
   };
 }
 
@@ -40,8 +40,7 @@ X86ELFObjectWriter::~X86ELFObjectWriter()
 
 unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
                                           const MCFixup &Fixup,
-                                          bool IsPCRel,
-                                          bool IsRelocWithSymbol) const {
+                                          bool IsPCRel) const {
   // determine the type of the relocation
 
   MCSymbolRefExpr::VariantKind Modifier = Fixup.getAccessVariant();