summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-19 19:44:04 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-19 19:44:04 +0000
commit1c201fbf73b1ecf2949cb9eebe9d023ad6ac6b81 (patch)
tree77dd9656692e4d06bd27438db6b38fd003b664a5 /clang/lib/Frontend/CompilerInstance.cpp
parentbc5af98f429d70c49cde03b13abe779429a488ca (diff)
downloadbcm5719-llvm-1c201fbf73b1ecf2949cb9eebe9d023ad6ac6b81.tar.gz
bcm5719-llvm-1c201fbf73b1ecf2949cb9eebe9d023ad6ac6b81.zip
clang -cc1: Kill off -empty-input only, and replace with -init-only which is an
actual action. - This is easier to use, and more reliable for timing the thing this was actually meant to be useful for. llvm-svn: 98978
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index bb0d308e7b4..7b4932d787a 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -429,12 +429,7 @@ bool CompilerInstance::InitializeSourceManager(llvm::StringRef InputFile,
SourceManager &SourceMgr,
const FrontendOptions &Opts) {
// Figure out where to get and map in the main file.
- if (Opts.EmptyInputOnly) {
- const char *EmptyStr = "";
- llvm::MemoryBuffer *SB =
- llvm::MemoryBuffer::getMemBuffer(EmptyStr, EmptyStr, "<empty input>");
- SourceMgr.createMainFileIDForMemBuffer(SB);
- } else if (InputFile != "-") {
+ if (InputFile != "-") {
const FileEntry *File = FileMgr.getFile(InputFile);
if (File) SourceMgr.createMainFileID(File, SourceLocation());
if (SourceMgr.getMainFileID().isInvalid()) {
OpenPOWER on IntegriCloud