aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/R600
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-02-05 17:09:11 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-02-05 17:09:11 +0000
commit3ce2ec847885b004c768869b825be1ff9d98eca3 (patch)
tree60d6be8e13ad1aea0210dc733476d97de8bb2d06 /lib/Target/R600
parent50a44a62b8dc8092b0c5cf5e4f2b62cd60085527 (diff)
downloadexternal_llvm-3ce2ec847885b004c768869b825be1ff9d98eca3.zip
external_llvm-3ce2ec847885b004c768869b825be1ff9d98eca3.tar.gz
external_llvm-3ce2ec847885b004c768869b825be1ff9d98eca3.tar.bz2
R600: Emit function name in the AsmPrinter
Emitting the function name allows us to check for it in the FileCheck tests so we can make sure FileCheck is checking the output of the correct function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600')
-rw-r--r--lib/Target/R600/AMDGPUAsmPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/R600/AMDGPUAsmPrinter.cpp b/lib/Target/R600/AMDGPUAsmPrinter.cpp
index 754506c..715a378 100644
--- a/lib/Target/R600/AMDGPUAsmPrinter.cpp
+++ b/lib/Target/R600/AMDGPUAsmPrinter.cpp
@@ -47,6 +47,9 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
#endif
}
SetupMachineFunction(MF);
+ if (OutStreamer.hasRawTextSupport()) {
+ OutStreamer.EmitRawText("@" + MF.getName() + ":");
+ }
OutStreamer.SwitchSection(getObjFileLowering().getTextSection());
if (STM.device()->getGeneration() > AMDGPUDeviceInfo::HD6XXX) {
EmitProgramInfo(MF);