diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-08-17 21:07:30 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-08-17 21:07:30 +0000 |
commit | 29cc642f6851a7142de4f7bc0f78d71f4f699f5c (patch) | |
tree | ceb9c7aaaf4d2de331bd0d06a419b7a762d2ec04 /clang/lib/Frontend/ASTUnit.cpp | |
parent | c14efa71220dd2c2205b33f2cc5f3c6983549f6b (diff) | |
download | bcm5719-llvm-29cc642f6851a7142de4f7bc0f78d71f4f699f5c.tar.gz bcm5719-llvm-29cc642f6851a7142de4f7bc0f78d71f4f699f5c.zip |
In the AST file format, eliminate the CHAINED_METADATA record. Instead,
all AST files have a normal METADATA record that has the same form
regardless of whether we refer to a chained PCH or any other kind of
AST file.
Introduce the IMPORTS record, which describes all of the AST files
that are imported by this AST file, and how (as a module, a PCH file,
etc.). Currently, we emit at most one entry to this record, to support
chained PCH.
llvm-svn: 137869
Diffstat (limited to 'clang/lib/Frontend/ASTUnit.cpp')
-rw-r--r-- | clang/lib/Frontend/ASTUnit.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp index 24f42b603ce..e369f430b7a 100644 --- a/clang/lib/Frontend/ASTUnit.cpp +++ b/clang/lib/Frontend/ASTUnit.cpp @@ -473,11 +473,6 @@ const std::string &ASTUnit::getOriginalSourceFileName() { return OriginalSourceFile; } -const std::string &ASTUnit::getASTFileName() { - assert(isMainFileAST() && "Not an ASTUnit from an AST file!"); - return static_cast<ASTReader *>(Ctx->getExternalSource())->getFileName(); -} - llvm::MemoryBuffer *ASTUnit::getBufferForFile(StringRef Filename, std::string *ErrorStr) { assert(FileMgr); |