Update Clang for rebase to r212749.
This also fixes a small issue with arm_neon.h not being generated always.
Includes a cherry-pick of:
r213450 - fixes mac-specific header issue
r213126 - removes a default -Bsymbolic on Android
Change-Id: I2a790a0f5d3b2aab11de596fc3a74e7cbc99081d
diff --git a/unittests/Tooling/RefactoringTest.cpp b/unittests/Tooling/RefactoringTest.cpp
index b1ed3c7..ddb974a 100644
--- a/unittests/Tooling/RefactoringTest.cpp
+++ b/unittests/Tooling/RefactoringTest.cpp
@@ -218,7 +218,7 @@
E = TemporaryFiles.end();
I != E; ++I) {
llvm::StringRef Name = I->second;
- llvm::error_code EC = llvm::sys::fs::remove(Name);
+ std::error_code EC = llvm::sys::fs::remove(Name);
(void)EC;
assert(!EC);
}
@@ -227,8 +227,7 @@
FileID createFile(llvm::StringRef Name, llvm::StringRef Content) {
SmallString<1024> Path;
int FD;
- llvm::error_code EC =
- llvm::sys::fs::createTemporaryFile(Name, "", FD, Path);
+ std::error_code EC = llvm::sys::fs::createTemporaryFile(Name, "", FD, Path);
assert(!EC);
(void)EC;
@@ -236,7 +235,7 @@
OutStream << Content;
OutStream.close();
const FileEntry *File = Context.Files.getFile(Path);
- assert(File != NULL);
+ assert(File != nullptr);
StringRef Found = TemporaryFiles.GetOrCreateValue(Name, Path.str()).second;
assert(Found == Path);
@@ -253,7 +252,7 @@
// FIXME: Figure out whether there is a way to get the SourceManger to
// reopen the file.
std::unique_ptr<const llvm::MemoryBuffer> FileBuffer(
- Context.Files.getBufferForFile(Path, NULL));
+ Context.Files.getBufferForFile(Path, nullptr));
return FileBuffer->getBuffer();
}