mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
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
This commit is contained in:
@@ -24,13 +24,6 @@ class MemoryBuffer;
|
|||||||
class SMDiagnostic;
|
class SMDiagnostic;
|
||||||
class LLVMContext;
|
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
|
/// If the given file holds a bitcode image, return a Module
|
||||||
/// for it which does lazy deserialization of function bodies. Otherwise,
|
/// for it which does lazy deserialization of function bodies. Otherwise,
|
||||||
/// attempt to parse it as LLVM Assembly and return a fully populated
|
/// attempt to parse it as LLVM Assembly and return a fully populated
|
||||||
|
@@ -29,9 +29,8 @@ namespace llvm {
|
|||||||
static const char *const TimeIRParsingGroupName = "LLVM IR Parsing";
|
static const char *const TimeIRParsingGroupName = "LLVM IR Parsing";
|
||||||
static const char *const TimeIRParsingName = "Parse IR";
|
static const char *const TimeIRParsingName = "Parse IR";
|
||||||
|
|
||||||
|
static Module *getLazyIRModule(MemoryBuffer *Buffer, SMDiagnostic &Err,
|
||||||
Module *llvm::getLazyIRModule(MemoryBuffer *Buffer, SMDiagnostic &Err,
|
LLVMContext &Context) {
|
||||||
LLVMContext &Context) {
|
|
||||||
if (isBitcode((const unsigned char *)Buffer->getBufferStart(),
|
if (isBitcode((const unsigned char *)Buffer->getBufferStart(),
|
||||||
(const unsigned char *)Buffer->getBufferEnd())) {
|
(const unsigned char *)Buffer->getBufferEnd())) {
|
||||||
std::string ErrMsg;
|
std::string ErrMsg;
|
||||||
|
Reference in New Issue
Block a user