[cfe-commits] r45102 - /cfe/trunk/Driver/clang.cpp
Chris Lattner
sabre at nondot.org
Mon Dec 17 09:42:26 PST 2007
Author: lattner
Date: Mon Dec 17 11:42:26 2007
New Revision: 45102
URL: http://llvm.org/viewvc/llvm-project?rev=45102&view=rev
Log:
Unbreak -v with framework paths. Patch by Shantonu Sen.
Modified:
cfe/trunk/Driver/clang.cpp
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=45102&r1=45101&r2=45102&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Mon Dec 17 11:42:26 2007
@@ -848,11 +848,16 @@
for (unsigned i = 0, e = SearchList.size(); i != e; ++i) {
if (i == QuotedIdx)
fprintf(stderr, "#include <...> search starts here:\n");
- fprintf(stderr, " %s", SearchList[i].getDir()->getName());
- if (SearchList[i].isFramework())
- fprintf(stderr, " (framework directory)");
- // FIXME: Print (headermap)"
- fprintf(stderr, "\n");
+ if (SearchList[i].isNormalDir())
+ fprintf(stderr, " %s\n", SearchList[i].getDir()->getName());
+ else if (SearchList[i].isFramework())
+ fprintf(stderr, " %s (framework directory)\n",
+ SearchList[i].getFrameworkDir()->getName());
+ else {
+ assert(SearchList[i].isHeaderMap() && "Unknown DirectoryLookup");
+ //fprintf(stderr, " %s (headermap)\n",
+ // SearchList[i].getHeaderMap()->getName());
+ }
}
fprintf(stderr, "End of search list.\n");
}
More information about the cfe-commits
mailing list