diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-08-02 04:50:49 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-08-02 04:50:49 +0000 |
commit | 3c05b7c161d8b7a8928f0d1a193d988f027271e9 (patch) | |
tree | c9498d205b8020faeb04e6bbd2be42d418037891 /clang/lib/ARCMigrate | |
parent | cfc491d30805036aa5f0c07838f7eb925d63ec54 (diff) | |
download | bcm5719-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.cpp | 9 |
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( |