Simplify, following MemoryBuffer::getSTDIN API fix.

llvm-svn: 86633
This commit is contained in:
Daniel Dunbar 2009-11-10 00:46:25 +00:00
parent 69914f4134
commit a8b869e794
1 changed files with 0 additions and 8 deletions

View File

@ -909,14 +909,6 @@ static bool InitializeSourceManager(Preprocessor &PP,
}
} else {
llvm::MemoryBuffer *SB = llvm::MemoryBuffer::getSTDIN();
// If stdin was empty, SB is null. Cons up an empty memory
// buffer now.
if (!SB) {
const char *EmptyStr = "";
SB = llvm::MemoryBuffer::getMemBuffer(EmptyStr, EmptyStr, "<stdin>");
}
SourceMgr.createMainFileIDForMemBuffer(SB);
if (SourceMgr.getMainFileID().isInvalid()) {
PP.getDiagnostics().Report(FullSourceLoc(),