Implemented -serialize-ast option for the driver. This is not really tested
and is a work in progress.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44967 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/TranslationUnit.cpp b/Driver/TranslationUnit.cpp
index 62a27f5..398afb0 100644
--- a/Driver/TranslationUnit.cpp
+++ b/Driver/TranslationUnit.cpp
@@ -33,7 +33,7 @@
using namespace clang;
-bool TranslationUnit::EmitBitcodeFile(llvm::sys::Path& Filename) const {
+bool TranslationUnit::EmitBitcodeFile(const llvm::sys::Path& Filename) const {
// Reserve 256K for bitstream buffer.
std::vector<unsigned char> Buffer;
@@ -122,8 +122,9 @@
Sezr.ExitBlock(); // exit "ASTContextBlock"
}
-TranslationUnit* TranslationUnit::ReadBitcodeFile(llvm::sys::Path& Filename,
- FileManager& FMgr) {
+TranslationUnit*
+TranslationUnit::ReadBitcodeFile(const llvm::sys::Path& Filename,
+ FileManager& FMgr) {
// Create the memory buffer that contains the contents of the file.
llvm::scoped_ptr<llvm::MemoryBuffer>