Hold the LLVMContext by reference rather than by pointer.
[oota-llvm.git] / lib / Archive / ArchiveWriter.cpp
index 641e3324d63dd25525089e08de8e404d6a6ba9b7..e84035404bf3564efecc4e4350002d8719b92b5c 100644 (file)
@@ -64,7 +64,7 @@ static inline unsigned numVbrBytes(unsigned num) {
 }
 
 // Create an empty archive.
-Archive* Archive::CreateEmpty(const sys::Path& FilePath, LLVMContext* C) {
+Archive* Archive::CreateEmpty(const sys::Path& FilePath, const LLVMContext& C) {
   Archive* result = new Archive(FilePath, C);
   return result;
 }