summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-27 09:19:14 +0000
committerAlp Toker <alp@nuanti.com>2014-06-27 09:19:14 +0000
commit9b0be7b61a2c636b7915bf30ad11b1e00a7cc0fe (patch)
tree1f85e517e7dacaf30677056aaa00d9a68c6dcf35 /include
parent22e371c74eb6a881f65d677712931297475a69d9 (diff)
downloadllvm-9b0be7b61a2c636b7915bf30ad11b1e00a7cc0fe.tar.gz
llvm-9b0be7b61a2c636b7915bf30ad11b1e00a7cc0fe.tar.bz2
llvm-9b0be7b61a2c636b7915bf30ad11b1e00a7cc0fe.tar.xz
IRReader: don't mark MemoryBuffers const
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Bitcode/ReaderWriter.h2
-rw-r--r--include/llvm/IRReader/IRReader.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Bitcode/ReaderWriter.h b/include/llvm/Bitcode/ReaderWriter.h
index c44b084c34..4c194a638d 100644
--- a/include/llvm/Bitcode/ReaderWriter.h
+++ b/include/llvm/Bitcode/ReaderWriter.h
@@ -52,7 +52,7 @@ namespace llvm {
/// Read the specified bitcode file, returning the module.
/// This method *never* takes ownership of Buffer.
- ErrorOr<Module *> parseBitcodeFile(const MemoryBuffer *Buffer,
+ ErrorOr<Module *> parseBitcodeFile(MemoryBuffer *Buffer,
LLVMContext &Context);
/// WriteBitcodeToFile - Write the specified module to the specified
diff --git a/include/llvm/IRReader/IRReader.h b/include/llvm/IRReader/IRReader.h
index 20022cf8d8..82c3752882 100644
--- a/include/llvm/IRReader/IRReader.h
+++ b/include/llvm/IRReader/IRReader.h
@@ -41,8 +41,7 @@ Module *getLazyIRFileModule(const std::string &Filename, SMDiagnostic &Err,
/// If the given MemoryBuffer holds a bitcode image, return a Module
/// for it. Otherwise, attempt to parse it as LLVM Assembly and return
/// a Module for it. This function *never* takes ownership of Buffer.
-Module *ParseIR(const MemoryBuffer *Buffer, SMDiagnostic &Err,
- LLVMContext &Context);
+Module *ParseIR(MemoryBuffer *Buffer, SMDiagnostic &Err, LLVMContext &Context);
/// If the given file holds a bitcode image, return a Module for it.
/// Otherwise, attempt to parse it as LLVM Assembly and return a Module