]> granicus.if.org Git - clang/commitdiff
XCore target: Pass through "-fverbose-asm" flag to xcc assembler.
authorRobert Lytton <robert@xmos.com>
Tue, 11 Feb 2014 10:34:45 +0000 (10:34 +0000)
committerRobert Lytton <robert@xmos.com>
Tue, 11 Feb 2014 10:34:45 +0000 (10:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201141 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp
test/Driver/xcore-opts.c

index 5792f42b6fc4d4d04fa3f033aba636f4367f4ac6..ecb6184d19f4c3bc9c20bddf1ef70a565b4af0c1 100644 (file)
@@ -7188,6 +7188,9 @@ void XCore::Assemble::ConstructJob(Compilation &C, const JobAction &JA,
   if (Args.hasArg(options::OPT_g_Group)) {
     CmdArgs.push_back("-g");
   }
+  if (Args.hasFlag(options::OPT_fverbose_asm, options::OPT_fno_verbose_asm,
+                   false))
+    CmdArgs.push_back("-fverbose-asm");
 
   Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA,
                        options::OPT_Xassembler);
index 10d8da172d4ac268aa474f4c96f7ae9cc593f777..adfb024e3f6239a0d1176b3a01f9301f66f80fe3 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang -target xcore %s -g -Wl,L1Arg,L2Arg -Wa,A1Arg,A2Arg -### -o %t.o 2>&1 | FileCheck %s
+// RUN: %clang -target xcore %s -g -Wl,L1Arg,L2Arg -Wa,A1Arg,A2Arg -fverbose-asm -### -o %t.o 2>&1 | FileCheck %s
 
 // CHECK: "-nostdsysteminc"
 // CHECK: "-momit-leaf-frame-pointer"
@@ -7,7 +7,7 @@
 // CHECK: "-fno-use-cxa-atexit"
 // CHECK: "-fno-common"
 // CHECH: xcc" "-o"
-// CHECK: "-c" "-g" "A1Arg" "A2Arg"
+// CHECK: "-c" "-g" "-fverbose-asm" "A1Arg" "A2Arg"
 // CHECK: xcc" "-o"
 // CHECK: "L1Arg" "L2Arg"