Make EmitFunctionHeader virtual
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 26 May 2015 17:33:15 +0000 (17:33 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 26 May 2015 17:33:15 +0000 (17:33 +0000)
This is to fix problems introduced by r232481. For HSAIL,
this function does essentially nothing desirable, and
injects unwanted / incorrect stuff before the function.
The only thing it really needs to do is call EmitFunctionEntryLabel
in this case.

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

include/llvm/CodeGen/AsmPrinter.h

index 070261a4cfc09b03ca63bedfdec142ac4f5057cb..47201e2564e3ca4be31d3dac779770a3bc3e9810 100644 (file)
@@ -502,7 +502,7 @@ private:
   mutable unsigned Counter;
 
   /// This method emits the header for the current function.
-  void EmitFunctionHeader();
+  virtual void EmitFunctionHeader();
 
   /// Emit a blob of inline asm to the output streamer.
   void