summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-08-02 04:50:49 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-08-02 04:50:49 +0000
commit3c05b7c161d8b7a8928f0d1a193d988f027271e9 (patch)
treec9498d205b8020faeb04e6bbd2be42d418037891 /clang/lib/ARCMigrate
parentcfc491d30805036aa5f0c07838f7eb925d63ec54 (diff)
downloadbcm5719-llvm-3c05b7c161d8b7a8928f0d1a193d988f027271e9.tar.gz
bcm5719-llvm-3c05b7c161d8b7a8928f0d1a193d988f027271e9.zip
Make helper functions static.
llvm-svn: 136679
Diffstat (limited to 'clang/lib/ARCMigrate')
-rw-r--r--clang/lib/ARCMigrate/ARCMT.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/lib/ARCMigrate/ARCMT.cpp b/clang/lib/ARCMigrate/ARCMT.cpp
index 3b44702fa1d..c8052e3d79e 100644
--- a/clang/lib/ARCMigrate/ARCMT.cpp
+++ b/clang/lib/ARCMigrate/ARCMT.cpp
@@ -176,7 +176,8 @@ static bool HasARCRuntime(CompilerInvocation &origCI) {
return false;
}
-CompilerInvocation *createInvocationForMigration(CompilerInvocation &origCI) {
+static CompilerInvocation *
+createInvocationForMigration(CompilerInvocation &origCI) {
llvm::OwningPtr<CompilerInvocation> CInvok;
CInvok.reset(new CompilerInvocation(origCI));
CInvok->getPreprocessorOpts().ImplicitPCHInclude = std::string();
@@ -193,9 +194,9 @@ CompilerInvocation *createInvocationForMigration(CompilerInvocation &origCI) {
return CInvok.take();
}
-void emitPremigrationErrors(const CapturedDiagList &arcDiags,
- const DiagnosticOptions &diagOpts,
- Preprocessor &PP) {
+static void emitPremigrationErrors(const CapturedDiagList &arcDiags,
+ const DiagnosticOptions &diagOpts,
+ Preprocessor &PP) {
TextDiagnosticPrinter printer(llvm::errs(), diagOpts);
llvm::IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
llvm::IntrusiveRefCntPtr<Diagnostic> Diags(
OpenPOWER on IntegriCloud