From 69dd37580c8425ece74551008ca9d01d368c35ff Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 26 May 2015 17:33:15 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238222 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/AsmPrinter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 070261a4cfc..47201e2564e 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -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 -- 2.34.1