[cfe-commits] r90124 - /cfe/trunk/lib/Driver/CC1Options.cpp
Daniel Dunbar
daniel at zuster.org
Mon Nov 30 00:41:23 PST 2009
Author: ddunbar
Date: Mon Nov 30 02:41:22 2009
New Revision: 90124
URL: http://llvm.org/viewvc/llvm-project?rev=90124&view=rev
Log:
clang -cc1: Fix -include-pch now that the test code is in clang-cc.
Modified:
cfe/trunk/lib/Driver/CC1Options.cpp
Modified: cfe/trunk/lib/Driver/CC1Options.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/CC1Options.cpp?rev=90124&r1=90123&r2=90124&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/CC1Options.cpp (original)
+++ cfe/trunk/lib/Driver/CC1Options.cpp Mon Nov 30 02:41:22 2009
@@ -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 @@
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())
More information about the cfe-commits
mailing list