OSDN Git Service

Revert SymbolFileNativePDB plugin.
authorZachary Turner <zturner@google.com>
Thu, 11 Oct 2018 18:45:44 +0000 (18:45 +0000)
committerZachary Turner <zturner@google.com>
Thu, 11 Oct 2018 18:45:44 +0000 (18:45 +0000)
This was originally causing some test failures on non-Windows
platforms, which required fixes in the compiler and linker.  After
those fixes, however, other tests started failing.  Reverting
temporarily until I can address everything.

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

lib/CodeGen/AsmPrinter/CodeViewDebug.cpp

index 8232f07..4d45a10 100644 (file)
@@ -73,7 +73,6 @@
 #include "llvm/Support/Error.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/FormatVariadic.h"
-#include "llvm/Support/Path.h"
 #include "llvm/Support/SMLoc.h"
 #include "llvm/Support/ScopedPrinter.h"
 #include "llvm/Target/TargetLoweringObjectFile.h"
@@ -135,9 +134,7 @@ StringRef CodeViewDebug::getFullFilepath(const DIFile *File) {
 
   // If this is a Unix-style path, just use it as is. Don't try to canonicalize
   // it textually because one of the path components could be a symlink.
-  if (Dir.startswith("/") || Filename.startswith("/")) {
-    if (llvm::sys::path::is_absolute(Filename, llvm::sys::path::Style::posix))
-      return Filename;
+  if (!Dir.empty() && Dir[0] == '/') {
     Filepath = Dir;
     if (Dir.back() != '/')
       Filepath += '/';