diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-29 21:26:52 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-29 21:26:52 +0000 |
commit | 073ff1013846ce59334a81cbfe30fdaae5d1f56b (patch) | |
tree | 16fb105520b577633a69ee2049da1ae9f1a0ef44 /clang/lib/Frontend/ASTUnit.cpp | |
parent | 7f822a9306f2818f9cbb020e96f97ce9b97dbc9a (diff) | |
download | bcm5719-llvm-073ff1013846ce59334a81cbfe30fdaae5d1f56b.tar.gz bcm5719-llvm-073ff1013846ce59334a81cbfe30fdaae5d1f56b.zip |
Update for llvm api change.
llvm-svn: 187379
Diffstat (limited to 'clang/lib/Frontend/ASTUnit.cpp')
-rw-r--r-- | clang/lib/Frontend/ASTUnit.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp index 909186118f1..72f5d4c18e0 100644 --- a/clang/lib/Frontend/ASTUnit.cpp +++ b/clang/lib/Frontend/ASTUnit.cpp @@ -1264,7 +1264,7 @@ ASTUnit::ComputePreamble(CompilerInvocation &Invocation, // (to a memory buffer). llvm::MemoryBuffer *Buffer = 0; std::string MainFilePath(FrontendOpts.Inputs[0].getFile()); - uint64_t MainFileID; + llvm::sys::fs::UniqueID MainFileID; if (!llvm::sys::fs::getUniqueID(MainFilePath, MainFileID)) { // Check whether there is a file-file remapping of the main file for (PreprocessorOptions::remapped_file_iterator @@ -1273,7 +1273,7 @@ ASTUnit::ComputePreamble(CompilerInvocation &Invocation, M != E; ++M) { std::string MPath(M->first); - uint64_t MID; + llvm::sys::fs::UniqueID MID; if (!llvm::sys::fs::getUniqueID(MPath, MID)) { if (MainFileID == MID) { // We found a remapping. Try to load the resulting, remapped source. @@ -1299,7 +1299,7 @@ ASTUnit::ComputePreamble(CompilerInvocation &Invocation, M != E; ++M) { std::string MPath(M->first); - uint64_t MID; + llvm::sys::fs::UniqueID MID; if (!llvm::sys::fs::getUniqueID(MPath, MID)) { if (MainFileID == MID) { // We found a remapping. @@ -2470,11 +2470,11 @@ void ASTUnit::CodeComplete(StringRef File, unsigned Line, unsigned Column, llvm::MemoryBuffer *OverrideMainBuffer = 0; if (!getPreambleFile(this).empty()) { std::string CompleteFilePath(File); - uint64_t CompleteFileID; + llvm::sys::fs::UniqueID CompleteFileID; if (!llvm::sys::fs::getUniqueID(CompleteFilePath, CompleteFileID)) { std::string MainPath(OriginalSourceFile); - uint64_t MainID; + llvm::sys::fs::UniqueID MainID; if (!llvm::sys::fs::getUniqueID(MainPath, MainID)) { if (CompleteFileID == MainID && Line > 1) OverrideMainBuffer |