From ad0bf36acd02e2c1e8dc8571f7eb71a3e8322ea9 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 5 Jul 2014 00:39:08 +0000 Subject: [PATCH] Make a helper function static. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212364 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IRReader/IRReader.h | 7 ------- lib/IRReader/IRReader.cpp | 5 ++--- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/include/llvm/IRReader/IRReader.h b/include/llvm/IRReader/IRReader.h index 82c37528824..59ffc095f47 100644 --- a/include/llvm/IRReader/IRReader.h +++ b/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/lib/IRReader/IRReader.cpp b/lib/IRReader/IRReader.cpp index 719319d96b1..00c6c0dbf43 100644 --- a/lib/IRReader/IRReader.cpp +++ b/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; -- 2.34.1