[llvm] r214221 - Delete dead code.

Rafael Espindola rafael.espindola at gmail.com
Tue Jul 29 14:09:44 PDT 2014


Author: rafael
Date: Tue Jul 29 16:09:43 2014
New Revision: 214221

URL: http://llvm.org/viewvc/llvm-project?rev=214221&view=rev
Log:
Delete dead code.

The gold plugin doesn't call lseek or read directly any more.

Modified:
    llvm/trunk/tools/gold/gold-plugin.cpp

Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=214221&r1=214220&r2=214221&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Tue Jul 29 16:09:43 2014
@@ -33,13 +33,6 @@
 #include <system_error>
 #include <vector>
 
-// Support Windows/MinGW crazyness.
-#ifdef _WIN32
-# include <io.h>
-# define lseek _lseek
-# define read _read
-#endif
-
 #ifndef LDPO_PIE
 // FIXME: remove this declaration when we stop maintaining Ubuntu Quantal and
 // Precise and Debian Wheezy (binutils 2.23 is required)





More information about the llvm-commits mailing list