forked from OSchip/llvm-project
Split out -verify into two distinct option flags
Instead of dual-purposing a single flag, rename the driver option to --verify-debug-info. The frontend -verify option that enables diagnostic verification remains unchanged except that it's now a pure CC1Option. Both have been given proper help text. llvm-svn: 199451
This commit is contained in:
parent
72005cb59d
commit
e9d2bfc7e9
|
@ -1295,8 +1295,10 @@ def unexported__symbols__list : Separate<["-"], "unexported_symbols_list">;
|
|||
def u : JoinedOrSeparate<["-"], "u">, Group<u_Group>;
|
||||
def v : Flag<["-"], "v">, Flags<[CC1Option]>,
|
||||
HelpText<"Show commands to run and use verbose output">;
|
||||
def verify : Flag<["-"], "verify">, Flags<[DriverOption,CC1Option]>,
|
||||
HelpText<"Verify output using a verifier">;
|
||||
def verify : Flag<["-"], "verify">, Flags<[CC1Option]>,
|
||||
HelpText<"Verify diagnostic output using comment directives">;
|
||||
def verify_debug_info : Flag<["--"], "verify-debug-info">, Flags<[DriverOption]>,
|
||||
HelpText<"Verify the binary representation of debug output">;
|
||||
def weak_l : Joined<["-"], "weak-l">, Flags<[LinkerInput]>;
|
||||
def weak__framework : Separate<["-"], "weak_framework">, Flags<[LinkerInput]>;
|
||||
def weak__library : Separate<["-"], "weak_library">, Flags<[LinkerInput]>;
|
||||
|
|
|
@ -935,8 +935,8 @@ void Driver::BuildUniversalActions(const ToolChain &TC,
|
|||
Actions.push_back(new DsymutilJobAction(Inputs, types::TY_dSYM));
|
||||
}
|
||||
|
||||
// Verify the output (debug information only) if we passed '-verify'.
|
||||
if (Args.hasArg(options::OPT_verify)) {
|
||||
// Verify the output (debug information only for now).
|
||||
if (Args.hasArg(options::OPT_verify_debug_info)) {
|
||||
ActionList VerifyInputs;
|
||||
VerifyInputs.push_back(Actions.back());
|
||||
Actions.pop_back();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
//
|
||||
// REQUIRES: asserts
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-phases \
|
||||
// RUN: -verify -arch i386 -arch x86_64 %s -g 2> %t
|
||||
// RUN: --verify-debug-info -arch i386 -arch x86_64 %s -g 2> %t
|
||||
// RUN: FileCheck -check-prefix=CHECK-MULTIARCH-ACTIONS < %t %s
|
||||
//
|
||||
// CHECK-MULTIARCH-ACTIONS: 0: input, "{{.*}}darwin-verify-debug.c", c
|
||||
|
@ -10,7 +10,7 @@
|
|||
// CHECK-MULTIARCH-ACTIONS: 9: verify, {8}, none
|
||||
//
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: -verify -arch i386 -arch x86_64 %s -g 2> %t
|
||||
// RUN: --verify-debug-info -arch i386 -arch x86_64 %s -g 2> %t
|
||||
// RUN: FileCheck -check-prefix=CHECK-MULTIARCH-BINDINGS < %t %s
|
||||
//
|
||||
// CHECK-MULTIARCH-BINDINGS: # "x86_64-apple-darwin10" - "darwin::Dsymutil", inputs: ["a.out"], output: "a.out.dSYM"
|
||||
|
@ -19,7 +19,7 @@
|
|||
// Check output name derivation.
|
||||
//
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: -verify -o foo %s -g 2> %t
|
||||
// RUN: --verify-debug-info -o foo %s -g 2> %t
|
||||
// RUN: FileCheck -check-prefix=CHECK-OUTPUT-NAME < %t %s
|
||||
//
|
||||
// CHECK-OUTPUT-NAME: "x86_64-apple-darwin10" - "darwin::Link", inputs: [{{.*}}], output: "foo"
|
||||
|
@ -30,5 +30,5 @@
|
|||
//
|
||||
// RUN: touch %t.o
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: -verify -o foo %t.o -g 2> %t
|
||||
// RUN: --verify-debug-info -o foo %t.o -g 2> %t
|
||||
// RUN: not grep "Verify" %t
|
||||
|
|
Loading…
Reference in New Issue