OSDN Git Service

[AVR] Update signature of AVRTargetObjectFile::SelectSectionForGlobal
authorDylan McKay <dylanmckay34@gmail.com>
Sat, 24 Sep 2016 11:38:08 +0000 (11:38 +0000)
committerDylan McKay <dylanmckay34@gmail.com>
Sat, 24 Sep 2016 11:38:08 +0000 (11:38 +0000)
It was changed recently, and was breaking compilation of the backend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282329 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AVR/AVRTargetObjectFile.cpp
lib/Target/AVR/AVRTargetObjectFile.h

index 85f03e8..c1d7a4e 100644 (file)
@@ -27,7 +27,7 @@ void AVRTargetObjectFile::Initialize(MCContext &Ctx, const TargetMachine &TM) {
 
 MCSection *
 AVRTargetObjectFile::SelectSectionForGlobal(const GlobalValue *GV,
-                                            SectionKind Kind, Mangler &Mang,
+                                            SectionKind Kind,
                                             const TargetMachine &TM) const {
   // Global values in flash memory are placed in the progmem.data section
   // unless they already have a user assigned section.
@@ -35,6 +35,7 @@ AVRTargetObjectFile::SelectSectionForGlobal(const GlobalValue *GV,
     return ProgmemDataSection;
 
   // Otherwise, we work the same way as ELF.
-  return Base::SelectSectionForGlobal(GV, Kind, Mang, TM);
+  return Base::SelectSectionForGlobal(GV, Kind, TM);
 }
 } // end of namespace llvm
+
index 5876125..19b2fe7 100644 (file)
@@ -22,7 +22,6 @@ public:
   void Initialize(MCContext &ctx, const TargetMachine &TM) override;
 
   MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
-                                    Mangler &Mang,
                                     const TargetMachine &TM) const override;
 
 private: