[llvm] r238222 - Make EmitFunctionHeader virtual

Matt Arsenault Matthew.Arsenault at amd.com
Tue May 26 10:33:15 PDT 2015


Author: arsenm
Date: Tue May 26 12:33:15 2015
New Revision: 238222

URL: http://llvm.org/viewvc/llvm-project?rev=238222&view=rev
Log:
Make EmitFunctionHeader virtual

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.

Modified:
    llvm/trunk/include/llvm/CodeGen/AsmPrinter.h

Modified: llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/AsmPrinter.h?rev=238222&r1=238221&r2=238222&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/AsmPrinter.h (original)
+++ llvm/trunk/include/llvm/CodeGen/AsmPrinter.h Tue May 26 12:33:15 2015
@@ -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





More information about the llvm-commits mailing list