Remove #ifdef __FreeBSD
authorRui Ueyama <ruiu@google.com>
Mon, 27 Oct 2014 07:44:40 +0000 (07:44 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 27 Oct 2014 07:44:40 +0000 (07:44 +0000)
r220665 makes configure or CMake to set HAVE_CXXABI_H on FreeBSD 10.0.
We don't need this ugly ifdef condition anymore.

llvm-svn: 220666

lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp
lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp

index faa4395..e6b655d 100644 (file)
@@ -22,9 +22,7 @@
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/Path.h"
 
-// FreeBSD 10.0 has cxxabi.h but fails to define HAVE_CXXABI_H due to
-// header dependency issues.
-#if defined(HAVE_CXXABI_H) || defined (__FreeBSD__)
+#if defined(HAVE_CXXABI_H)
 #include <cxxabi.h>
 #endif
 
@@ -274,7 +272,7 @@ std::string ELFLinkingContext::demangle(StringRef symbolName) const {
   if (!symbolName.startswith("_Z"))
     return symbolName;
 
-#if defined(HAVE_CXXABI_H) || defined (__FreeBSD__)
+#if defined(HAVE_CXXABI_H)
   SmallString<256> symBuff;
   StringRef nullTermSym = Twine(symbolName).toNullTerminatedStringRef(symBuff);
   const char *cstr = nullTermSym.data();
index cbadcfc..b99ecc8 100644 (file)
@@ -27,9 +27,7 @@
 #include "llvm/Support/Path.h"
 #include <algorithm>
 
-// FreeBSD 10.0 has cxxabi.h but fails to define HAVE_CXXABI_H due to
-// header dependency issues.
-#if defined(HAVE_CXXABI_H) || defined(__FreeBSD__)
+#if defined(HAVE_CXXABI_H)
 #include <cxxabi.h>
 #endif
 
@@ -761,7 +759,7 @@ std::string MachOLinkingContext::demangle(StringRef symbolName) const {
   if (!symbolName.startswith("__Z"))
     return symbolName;
 
-#if defined(HAVE_CXXABI_H) || defined(__FreeBSD__)
+#if defined(HAVE_CXXABI_H)
   SmallString<256> symBuff;
   StringRef nullTermSym = Twine(symbolName).toNullTerminatedStringRef(symBuff);
   // Mach-O has extra leading underscore that needs to be removed.