]> granicus.if.org Git - llvm/commitdiff
Try to make AsmPrinter vtable compatible with previous shared library.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 13 Mar 2015 11:54:32 +0000 (11:54 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 13 Mar 2015 11:54:32 +0000 (11:54 +0000)
r232083 added AsmPrinter::emitInlineAsmStart() before
AsmPrinter::emitInlineAsmEnd(), changing the vtable in an incompatible way.
This patch swaps the declaration order so that the new vtable entry is at the
end of the vtable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_35@232162 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/AsmPrinter.h
lib/Target/Mips/MipsAsmPrinter.h

index aeaf3a87f92744d0dfc8adf1dc85b52611068394..de14c1a9fb115da823e8ce4b30f0fb787bca9d21 100644 (file)
@@ -461,10 +461,6 @@ public:
                                      unsigned AsmVariant, const char *ExtraCode,
                                      raw_ostream &OS);
 
-  /// Let the target do anything it needs to do before emitting inlineasm.
-  /// \p StartInfo - the subtarget info before parsing inline asm
-  virtual void emitInlineAsmStart(const MCSubtargetInfo &StartInfo) const;
-
   /// Let the target do anything it needs to do after emitting inlineasm.
   /// This callback can be used restore the original mode in case the
   /// inlineasm contains directives to switch modes.
@@ -474,6 +470,10 @@ public:
   virtual void emitInlineAsmEnd(const MCSubtargetInfo &StartInfo,
                                 const MCSubtargetInfo *EndInfo) const;
 
+  /// Let the target do anything it needs to do before emitting inlineasm.
+  /// \p StartInfo - the subtarget info before parsing inline asm
+  virtual void emitInlineAsmStart(const MCSubtargetInfo &StartInfo) const;
+
 private:
   /// Private state for PrintSpecial()
   // Assign a unique ID to this machine instruction.
index 289466bab23de94d43417c25e2177f13740ef6f9..83af747b9a996e44fae43f74e23ffd726633888d 100644 (file)
@@ -60,11 +60,11 @@ private:
   std::map<const char *, const llvm::Mips16HardFloatInfo::FuncSignature *>
   StubsNeeded;
 
-  void emitInlineAsmStart(const MCSubtargetInfo &StartInfo) const override;
-
   void emitInlineAsmEnd(const MCSubtargetInfo &StartInfo,
                         const MCSubtargetInfo *EndInfo) const override;
 
+  void emitInlineAsmStart(const MCSubtargetInfo &StartInfo) const override;
+
   void EmitJal(MCSymbol *Symbol);
 
   void EmitInstrReg(unsigned Opcode, unsigned Reg);