r235749 - [CodeGen] Make AsmPrinter's OutStreamer member a unique_ptr.

Lang Hames lhames at gmail.com
Fri Apr 24 12:04:55 PDT 2015


Author: lhames
Date: Fri Apr 24 14:04:55 2015
New Revision: 235749

URL: http://llvm.org/viewvc/llvm-project?rev=235749&view=rev
Log:
[CodeGen] Make AsmPrinter's OutStreamer member a unique_ptr.

AsmPrinter owns the OutStreamer, so an owning pointer makes sense here. Using a
reference for this is crufty.

Modified:
    cfe/trunk/tools/driver/driver.cpp

Modified: cfe/trunk/tools/driver/driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/driver.cpp?rev=235749&r1=235748&r2=235749&view=diff
==============================================================================
--- cfe/trunk/tools/driver/driver.cpp (original)
+++ cfe/trunk/tools/driver/driver.cpp Fri Apr 24 14:04:55 2015
@@ -27,6 +27,7 @@
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/SmallVector.h"
+#include "llvm/CodeGen/LinkAllCodegenComponents.h"
 #include "llvm/Config/llvm-config.h"
 #include "llvm/Option/ArgList.h"
 #include "llvm/Option/OptTable.h"





More information about the cfe-commits mailing list