[llvm-commits] [poolalloc] r75216 - /poolalloc/trunk/tools/Pa/pa.cpp
John Criswell
criswell at uiuc.edu
Thu Jul 9 18:15:00 PDT 2009
Author: criswell
Date: Thu Jul 9 20:14:55 2009
New Revision: 75216
URL: http://llvm.org/viewvc/llvm-project?rev=75216&view=rev
Log:
Undid last commit.
This fixes the build on Mac OS X.
Modified:
poolalloc/trunk/tools/Pa/pa.cpp
Modified: poolalloc/trunk/tools/Pa/pa.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/tools/Pa/pa.cpp?rev=75216&r1=75215&r2=75216&view=diff
==============================================================================
--- poolalloc/trunk/tools/Pa/pa.cpp (original)
+++ poolalloc/trunk/tools/Pa/pa.cpp Thu Jul 9 20:14:55 2009
@@ -67,6 +67,9 @@
// main - Entry point for the sc compiler.
//
int main(int argc, char **argv) {
+ std::string mt;
+ std::string & msg = mt;
+
LLVMContext Context;
try {
cl::ParseCommandLineOptions(argc, argv, " llvm system compiler\n");
@@ -159,7 +162,7 @@
if (Out != &std::cout) delete Out;
return 0;
- } catch (std::string msg) {
+ } catch (msg) {
std::cerr << argv[0] << ": " << msg << "\n";
} catch (...) {
std::cerr << argv[0] << ": Unexpected unknown exception occurred.\n";
More information about the llvm-commits
mailing list