[llvm-commits] [llvm] r110998 - in /llvm/trunk: test/LLVMC/MultiplePluginPriorities.td test/LLVMC/OutputSuffixHook.td utils/TableGen/LLVMCConfigurationEmitter.cpp
Mikhail Glushenkov
foldr at codedgers.com
Thu Aug 12 19:29:24 PDT 2010
Author: foldr
Date: Thu Aug 12 21:29:24 2010
New Revision: 110998
URL: http://llvm.org/viewvc/llvm-project?rev=110998&view=rev
Log:
llvmc: fix two tests, remove XFAILs.
Tested on Linux and Darwin; please add platform-specific XFAILs/mail me a bug
report if this still fails.
Modified:
llvm/trunk/test/LLVMC/MultiplePluginPriorities.td
llvm/trunk/test/LLVMC/OutputSuffixHook.td
llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
Modified: llvm/trunk/test/LLVMC/MultiplePluginPriorities.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/MultiplePluginPriorities.td?rev=110998&r1=110997&r2=110998&view=diff
==============================================================================
--- llvm/trunk/test/LLVMC/MultiplePluginPriorities.td (original)
+++ llvm/trunk/test/LLVMC/MultiplePluginPriorities.td Thu Aug 12 21:29:24 2010
@@ -4,10 +4,6 @@
// Disable for Darwin PPC: <rdar://problem/7598390>
// XFAIL: powerpc-apple-darwin
-// Generally XFAIL'ed for now, this is (sometimes?) failing on x86_64-apple-darwin10.
-// RUN: false
-// XFAIL: *
-
include "llvm/CompilerDriver/Common.td"
def Graph : CompilationGraph<[]>;
Modified: llvm/trunk/test/LLVMC/OutputSuffixHook.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/OutputSuffixHook.td?rev=110998&r1=110997&r2=110998&view=diff
==============================================================================
--- llvm/trunk/test/LLVMC/OutputSuffixHook.td (original)
+++ llvm/trunk/test/LLVMC/OutputSuffixHook.td Thu Aug 12 21:29:24 2010
@@ -2,7 +2,6 @@
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
// RUN: FileCheck -input-file %t %s
// RUN: %compile_cxx -fexceptions -x c++ %t
-// XFAIL: *
include "llvm/CompilerDriver/Common.td"
@@ -13,7 +12,7 @@
]>;
def dummy_tool : Tool<[
-(cmd_line "dummy_cmd $INFILE"),
+(command "dummy_cmd"),
(in_language "dummy_lang"),
(out_language "dummy_lang"),
(actions (case
Modified: llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp?rev=110998&r1=110997&r2=110998&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp Thu Aug 12 21:29:24 2010
@@ -2177,8 +2177,8 @@
<< "std::vector<std::pair<unsigned, std::string> > vec;\n";
O.indent(Indent2) << "bool stop_compilation = !HasChildren;\n";
O.indent(Indent2) << "bool no_out_file = false;\n";
- O.indent(Indent2) << "const char* output_suffix = \""
- << D.OutputSuffix << "\";\n";
+ O.indent(Indent2) << "std::string output_suffix(\""
+ << D.OutputSuffix << "\");\n";
}
}
@@ -2235,7 +2235,8 @@
O.indent(Indent3) << "out_file = this->OutFilename("
<< (IsJoin ? "sys::Path(),\n" : "inFile,\n");
- O.indent(Indent4) << "TempDir, stop_compilation, output_suffix).str();\n\n";
+ O.indent(Indent4) <<
+ "TempDir, stop_compilation, output_suffix.c_str()).str();\n\n";
O.indent(Indent3) << "vec.push_back(std::make_pair(65536, out_file));\n";
O.indent(Indent2) << "}\n\n";
More information about the llvm-commits
mailing list