diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-09 16:23:46 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-09 16:23:46 +0000 |
commit | 0df4e226029f6e3bdaed0d66282c38ca35867240 (patch) | |
tree | f51092e5bca759e4bcf3bcbe531d62f272f85d11 /tools/llvm-lto | |
parent | 2ffe261575cf69a063ec29966a1cfad49aff55d7 (diff) |
Make helper functions static.
Found by -Wmissing-prototypes. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-lto')
-rw-r--r-- | tools/llvm-lto/llvm-lto.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/llvm-lto/llvm-lto.cpp b/tools/llvm-lto/llvm-lto.cpp index 32b31343411..74d74d5e88b 100644 --- a/tools/llvm-lto/llvm-lto.cpp +++ b/tools/llvm-lto/llvm-lto.cpp @@ -79,8 +79,8 @@ struct ModuleInfo { }; } -void handleDiagnostics(lto_codegen_diagnostic_severity_t Severity, - const char *Msg, void *) { +static void handleDiagnostics(lto_codegen_diagnostic_severity_t Severity, + const char *Msg, void *) { switch (Severity) { case LTO_DS_NOTE: errs() << "note: "; @@ -98,7 +98,7 @@ void handleDiagnostics(lto_codegen_diagnostic_severity_t Severity, errs() << Msg << "\n"; } -std::unique_ptr<LTOModule> +static std::unique_ptr<LTOModule> getLocalLTOModule(StringRef Path, std::unique_ptr<MemoryBuffer> &Buffer, const TargetOptions &Options, std::string &Error) { ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = @@ -118,7 +118,7 @@ getLocalLTOModule(StringRef Path, std::unique_ptr<MemoryBuffer> &Buffer, /// functionality that's exposed by the C API to list symbols. Moreover, this /// provides testing coverage for modules that have been created in their own /// contexts. -int listSymbols(StringRef Command, const TargetOptions &Options) { +static int listSymbols(StringRef Command, const TargetOptions &Options) { for (auto &Filename : InputFilenames) { std::string Error; std::unique_ptr<MemoryBuffer> Buffer; |