summaryrefslogtreecommitdiff
path: root/test/LLVMC
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-12-07 16:47:12 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-12-07 16:47:12 +0000
commitb4ced5a3c488d58d98381c8562123640fdb6177a (patch)
treeef163021516d3e6be1c28e111ea95c080f186efa /test/LLVMC
parent940cdfe69710c1cc0f4e74650bc321e78df31297 (diff)
downloadllvm-b4ced5a3c488d58d98381c8562123640fdb6177a.tar.gz
llvm-b4ced5a3c488d58d98381c8562123640fdb6177a.tar.bz2
llvm-b4ced5a3c488d58d98381c8562123640fdb6177a.tar.xz
Make 'extern' an option property.
Makes (forward) work better. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/LLVMC')
-rw-r--r--test/LLVMC/ExternOptions.td7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/LLVMC/ExternOptions.td b/test/LLVMC/ExternOptions.td
index d38675c55e..11383cb15b 100644
--- a/test/LLVMC/ExternOptions.td
+++ b/test/LLVMC/ExternOptions.td
@@ -1,11 +1,12 @@
// Check that extern options work.
// The dummy tool and graph are required to silence warnings.
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s | grep extern
+// RUN: tblgen -I $srcroot/include --gen-llvmc %s | grep {extern .* AutoGeneratedSwitch_Wall}
include "llvm/CompilerDriver/Common.td"
-def OptList : OptionList<[(extern_switch "Wall"),
- (extern_parameter "std"), (extern_list "L")]>;
+def OptList : OptionList<[(switch_option "Wall", (extern)),
+ (parameter_option "std", (extern)),
+ (prefix_list_option "L", (extern))]>;
def dummy_tool : Tool<[
(cmd_line "dummy_cmd"),