Remove needless include (unistd.h) in DebugIR pass
authorDaniel Malea <daniel.malea@intel.com>
Fri, 28 Jun 2013 19:19:44 +0000 (19:19 +0000)
committerDaniel Malea <daniel.malea@intel.com>
Fri, 28 Jun 2013 19:19:44 +0000 (19:19 +0000)
- should unbreak Windows builds

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185198 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/DebugIR.cpp

index 2f602be78a05ae4bcab90bf4d0027ee7e5a4c3f7..0c85496713c441e1e28c843a24585a57c2092b42 100644 (file)
@@ -37,7 +37,6 @@
 #include "DebugIR.h"
 
 #include <string>
-#include <unistd.h>
 
 #define STR_HELPER(x) #x
 #define STR(x) STR_HELPER(x)
@@ -542,7 +541,6 @@ void DebugIR::writeDebugBitcode(const Module *M, int *fd) {
 
   M->print(*Out, 0);
   Out->close();
-  sync();
 }
 
 void DebugIR::createDebugInfo(Module &M, OwningPtr<Module> &DisplayM) {