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
This commit is contained in:
Matt Arsenault 2015-05-26 17:33:15 +00:00
parent c068b91ae1
commit 69dd37580c

View 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