projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unbreak build with gcc 4.3: provide missed includes and silence most annoying warnings.
[oota-llvm.git]
/
tools
/
llvmc
/
llvmc.cpp
diff --git
a/tools/llvmc/llvmc.cpp
b/tools/llvmc/llvmc.cpp
index c257a3ebab24f987ab6ce29ee169f52f59b847bc..2bb406924795a0bc245d9bc6a5f314ea7e172596 100644
(file)
--- a/
tools/llvmc/llvmc.cpp
+++ b/
tools/llvmc/llvmc.cpp
@@
-2,8
+2,8
@@
//
// The LLVM Compiler Infrastructure
//
//
// The LLVM Compiler Infrastructure
//
-// This file
was developed by Reid Spencer and is distributed under th
e
-//
University of Illinois Open Source
License. See LICENSE.TXT for details.
+// This file
is distributed under the University of Illinois Open Sourc
e
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
//
//===----------------------------------------------------------------------===//
//
@@
-21,6
+21,7
@@
#include "llvm/Support/ManagedStatic.h"
#include "llvm/System/Signals.h"
#include <iostream>
#include "llvm/Support/ManagedStatic.h"
#include "llvm/System/Signals.h"
#include <iostream>
+#include <cstring>
using namespace llvm;
//===----------------------------------------------------------------------===//
using namespace llvm;
//===----------------------------------------------------------------------===//
@@
-253,11
+254,14
@@
int main(int argc, char **argv) {
// Make sure we print stack trace if we get bad signals
sys::PrintStackTraceOnErrorSignal();
// Make sure we print stack trace if we get bad signals
sys::PrintStackTraceOnErrorSignal();
+ std::cout << "NOTE: llvmc is highly experimental and mostly useless right "
+ "now.\nPlease use llvm-gcc directly instead.\n\n";
+
try {
// Parse the command line options
cl::ParseCommandLineOptions(argc, argv,
try {
// Parse the command line options
cl::ParseCommandLineOptions(argc, argv,
- "
LLVM Compiler Driver (llvmc)\n\n"
+ "LLVM Compiler Driver (llvmc)\n\n"
" This program provides easy invocation of the LLVM tool set\n"
" and other compiler tools.\n"
);
" This program provides easy invocation of the LLVM tool set\n"
" and other compiler tools.\n"
);