summaryrefslogtreecommitdiff
path: root/tools/arcmt-test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-07-23 17:14:25 +0000
committerChris Lattner <sabre@nondot.org>2011-07-23 17:14:25 +0000
commit2d3ba4f5a923a90c3fc290ddfba5e36c2d0a9b46 (patch)
tree3b65b8898ac2f33b825765d8519f7329d2b556ec /tools/arcmt-test
parent1c3199afb8aeab5f4dfcef60999d13d9c6877a67 (diff)
downloadclang-2d3ba4f5a923a90c3fc290ddfba5e36c2d0a9b46.tar.gz
clang-2d3ba4f5a923a90c3fc290ddfba5e36c2d0a9b46.tar.bz2
clang-2d3ba4f5a923a90c3fc290ddfba5e36c2d0a9b46.tar.xz
Move ArrayRef to LLVM.h and eliminate now-redundant qualifiers, patch by Jon Mulder!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/arcmt-test')
-rw-r--r--tools/arcmt-test/arcmt-test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/arcmt-test/arcmt-test.cpp b/tools/arcmt-test/arcmt-test.cpp
index edef415edb..7477f943ee 100644
--- a/tools/arcmt-test/arcmt-test.cpp
+++ b/tools/arcmt-test/arcmt-test.cpp
@@ -104,7 +104,7 @@ public:
} // anonymous namespace
static bool checkForMigration(StringRef resourcesPath,
- llvm::ArrayRef<const char *> Args) {
+ ArrayRef<const char *> Args) {
DiagnosticClient *DiagClient =
new TextDiagnosticPrinter(llvm::errs(), DiagnosticOptions());
llvm::IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
@@ -146,7 +146,7 @@ static void printResult(FileRemapper &remapper, raw_ostream &OS) {
}
static bool performTransformations(StringRef resourcesPath,
- llvm::ArrayRef<const char *> Args) {
+ ArrayRef<const char *> Args) {
// Check first.
if (checkForMigration(resourcesPath, Args))
return true;
@@ -215,7 +215,7 @@ static bool filesCompareEqual(StringRef fname1, StringRef fname2) {
return file1->getBuffer() == file2->getBuffer();
}
-static bool verifyTransformedFiles(llvm::ArrayRef<std::string> resultFiles) {
+static bool verifyTransformedFiles(ArrayRef<std::string> resultFiles) {
using namespace llvm;
assert(!resultFiles.empty());
@@ -364,7 +364,7 @@ int main(int argc, const char **argv) {
return 1;
}
- llvm::ArrayRef<const char*> Args(argv+optargc+1, argc-optargc-1);
+ ArrayRef<const char*> Args(argv+optargc+1, argc-optargc-1);
if (CheckOnly)
return checkForMigration(resourcesPath, Args);