summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/CC1Options.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-30 08:41:22 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-30 08:41:22 +0000
commit8c317acd2b6ae335aa30e7f57e1932dfca89a32e (patch)
tree1e5d218da68320f07a7644845f04fe95ca33d431 /clang/lib/Driver/CC1Options.cpp
parent599abb2d5698b52d04e800fe61ac633756eae6d0 (diff)
downloadbcm5719-llvm-8c317acd2b6ae335aa30e7f57e1932dfca89a32e.tar.gz
bcm5719-llvm-8c317acd2b6ae335aa30e7f57e1932dfca89a32e.zip
clang -cc1: Fix -include-pch now that the test code is in clang-cc.
llvm-svn: 90124
Diffstat (limited to 'clang/lib/Driver/CC1Options.cpp')
-rw-r--r--clang/lib/Driver/CC1Options.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/Driver/CC1Options.cpp b/clang/lib/Driver/CC1Options.cpp
index 667335e0b45..010c6a521b5 100644
--- a/clang/lib/Driver/CC1Options.cpp
+++ b/clang/lib/Driver/CC1Options.cpp
@@ -17,6 +17,7 @@
#include "clang/Driver/Option.h"
#include "clang/Frontend/CompilerInvocation.h"
#include "clang/Frontend/LangStandard.h"
+#include "clang/Frontend/PCHReader.h"
#include "llvm/ADT/OwningPtr.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/SmallVector.h"
@@ -628,11 +629,8 @@ static void ParsePreprocessorArgs(PreprocessorOptions &Opts, ArgList &Args) {
ie = Args.filtered_end(); it != ie; ++it) {
// PCH is handled specially, we need to extra the original include path.
if (it->getOption().matches(OPT_include_pch)) {
- // FIXME: Disabled for now, I don't want to incur the cost of linking in
- // Sema and all until we are actually going to use it. Alternatively this
- // could be factored out somehow.
- // PCHReader::getOriginalSourceFile(it->getValue(Args));
- std::string OriginalFile = "FIXME";
+ std::string OriginalFile =
+ PCHReader::getOriginalSourceFile(it->getValue(Args));
// FIXME: Don't fail like this.
if (OriginalFile.empty())
OpenPOWER on IntegriCloud