aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/DataStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/DataStream.cpp')
-rw-r--r--lib/Support/DataStream.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Support/DataStream.cpp b/lib/Support/DataStream.cpp
index 1caeddfe24..eec858416a 100644
--- a/lib/Support/DataStream.cpp
+++ b/lib/Support/DataStream.cpp
@@ -14,7 +14,6 @@
//
//===----------------------------------------------------------------------===//
-#define DEBUG_TYPE "Data-stream"
#include "llvm/Support/DataStream.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/FileSystem.h"
@@ -30,6 +29,8 @@
#endif
using namespace llvm;
+#define DEBUG_TYPE "Data-stream"
+
// Interface goals:
// * StreamableMemoryObject doesn't care about complexities like using
// threads/async callbacks to actually overlap download+compile
@@ -83,7 +84,7 @@ DataStreamer *getDataFileStreamer(const std::string &Filename,
if (error_code e = s->OpenFile(Filename)) {
*StrError = std::string("Could not open ") + Filename + ": " +
e.message() + "\n";
- return NULL;
+ return nullptr;
}
return s;
}