diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-06 18:36:04 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-06 18:36:04 +0000 |
commit | 6a96ae5ecb90009aeca32add375cad4206b55bee (patch) | |
tree | 95f286ce2fe3283b36900134f94ac5ef7641435c /clang/lib/Serialization/ASTWriter.cpp | |
parent | e0be425a53b09e995610441e98666f94b7554efd (diff) | |
download | bcm5719-llvm-6a96ae5ecb90009aeca32add375cad4206b55bee.tar.gz bcm5719-llvm-6a96ae5ecb90009aeca32add375cad4206b55bee.zip |
ASTUnit: Use range-based for loops.
llvm-svn: 228420
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index 3003e4b4770..41ef7ef2fc0 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/lib/Serialization/ASTWriter.cpp @@ -1062,7 +1062,8 @@ void ASTWriter::WriteBlockInfoBlock() { /// to an absolute path and removing nested './'s. /// /// \return \c true if the path was changed. -bool cleanPathForOutput(FileManager &FileMgr, SmallVectorImpl<char> &Path) { +static bool cleanPathForOutput(FileManager &FileMgr, + SmallVectorImpl<char> &Path) { bool Changed = false; if (!llvm::sys::path::is_absolute(StringRef(Path.data(), Path.size()))) { |