Subzero: Change llvm::OwningPtr to C++11's std::unique_ptr.
While I'm at it, normalize the #include order:
1. C++ library headers
2. LLVM headers
3. Subzero headers
A blank line between each group. Each group sorted alphabetically, case-insensitive.
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3930
R=jfb@chromium.org, jvoung@chromium.org
Review URL: https://codereview.chromium.org/622443002
diff --git a/src/PNaClTranslator.cpp b/src/PNaClTranslator.cpp
index e1925df..c160daa 100644
--- a/src/PNaClTranslator.cpp
+++ b/src/PNaClTranslator.cpp
@@ -12,14 +12,10 @@
//
//===----------------------------------------------------------------------===//
-#include "IceCfg.h"
-#include "IceCfgNode.h"
-#include "IceClFlags.h"
-#include "IceDefs.h"
-#include "IceInst.h"
-#include "IceOperand.h"
-#include "IceTypeConverter.h"
-#include "PNaClTranslator.h"
+#include <cassert>
+#include <memory>
+#include <vector>
+
#include "llvm/Analysis/NaCl/PNaClABIProps.h"
#include "llvm/Bitcode/NaCl/NaClBitcodeDecoders.h"
#include "llvm/Bitcode/NaCl/NaClBitcodeHeader.h"
@@ -34,8 +30,14 @@
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/ValueHandle.h"
-#include <vector>
-#include <cassert>
+#include "IceCfg.h"
+#include "IceCfgNode.h"
+#include "IceClFlags.h"
+#include "IceDefs.h"
+#include "IceInst.h"
+#include "IceOperand.h"
+#include "IceTypeConverter.h"
+#include "PNaClTranslator.h"
using namespace llvm;
@@ -252,7 +254,7 @@
// The translator associated with the parser.
Ice::Translator &Translator;
// The parsed module.
- OwningPtr<Module> Mod;
+ std::unique_ptr<Module> Mod;
// The data layout to use.
DataLayout DL;
// The bitcode header.