summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-07-05 00:39:08 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-07-05 00:39:08 +0000
commit8286fbf4c4b236166b23ce734bcf8d571eb11c94 (patch)
tree940debfa20af806699ae004e13845df033772ef9
parente0950ee85cb54ca4ff7a4eb779602fc5b1e3b046 (diff)
downloadbcm5719-llvm-8286fbf4c4b236166b23ce734bcf8d571eb11c94.tar.gz
bcm5719-llvm-8286fbf4c4b236166b23ce734bcf8d571eb11c94.zip
Make a helper function static. No functionality change.
llvm-svn: 212364
-rw-r--r--llvm/include/llvm/IRReader/IRReader.h7
-rw-r--r--llvm/lib/IRReader/IRReader.cpp5
2 files changed, 2 insertions, 10 deletions
diff --git a/llvm/include/llvm/IRReader/IRReader.h b/llvm/include/llvm/IRReader/IRReader.h
index 82c37528824..59ffc095f47 100644
--- a/llvm/include/llvm/IRReader/IRReader.h
+++ b/llvm/include/llvm/IRReader/IRReader.h
@@ -24,13 +24,6 @@ class MemoryBuffer;
class SMDiagnostic;
class LLVMContext;
-/// If the given MemoryBuffer holds a bitcode image, return a Module for it
-/// which does lazy deserialization of function bodies. Otherwise, attempt to
-/// parse it as LLVM Assembly and return a fully populated Module. This
-/// function *always* takes ownership of the given MemoryBuffer.
-Module *getLazyIRModule(MemoryBuffer *Buffer, SMDiagnostic &Err,
- LLVMContext &Context);
-
/// If the given file holds a bitcode image, return a Module
/// for it which does lazy deserialization of function bodies. Otherwise,
/// attempt to parse it as LLVM Assembly and return a fully populated
diff --git a/llvm/lib/IRReader/IRReader.cpp b/llvm/lib/IRReader/IRReader.cpp
index 719319d96b1..00c6c0dbf43 100644
--- a/llvm/lib/IRReader/IRReader.cpp
+++ b/llvm/lib/IRReader/IRReader.cpp
@@ -29,9 +29,8 @@ namespace llvm {
static const char *const TimeIRParsingGroupName = "LLVM IR Parsing";
static const char *const TimeIRParsingName = "Parse IR";
-
-Module *llvm::getLazyIRModule(MemoryBuffer *Buffer, SMDiagnostic &Err,
- LLVMContext &Context) {
+static Module *getLazyIRModule(MemoryBuffer *Buffer, SMDiagnostic &Err,
+ LLVMContext &Context) {
if (isBitcode((const unsigned char *)Buffer->getBufferStart(),
(const unsigned char *)Buffer->getBufferEnd())) {
std::string ErrMsg;
OpenPOWER on IntegriCloud