diff options
author | Serge Pavlov <sepavloff@gmail.com> | 2018-05-29 07:05:41 +0000 |
---|---|---|
committer | Serge Pavlov <sepavloff@gmail.com> | 2018-05-29 07:05:41 +0000 |
commit | 1a095524f29c2861e47d181c83532211d32f6846 (patch) | |
tree | f1f335f75e6ab265fa1c7e4882b2aa37bd50ba0a /llvm/lib/Demangle/ItaniumDemangle.cpp | |
parent | 335fa1eb04a011a6f174a82947efe6c8c3a4cd88 (diff) | |
download | bcm5719-llvm-1a095524f29c2861e47d181c83532211d32f6846.tar.gz bcm5719-llvm-1a095524f29c2861e47d181c83532211d32f6846.zip |
Reverted commits 333390, 333391 and 333394
Build of shared library LLVMDemangle.so fails due to dependency problem.
llvm-svn: 333395
Diffstat (limited to 'llvm/lib/Demangle/ItaniumDemangle.cpp')
-rw-r--r-- | llvm/lib/Demangle/ItaniumDemangle.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Demangle/ItaniumDemangle.cpp b/llvm/lib/Demangle/ItaniumDemangle.cpp index df0106aa497..8955c55c312 100644 --- a/llvm/lib/Demangle/ItaniumDemangle.cpp +++ b/llvm/lib/Demangle/ItaniumDemangle.cpp @@ -12,8 +12,8 @@ // - C++ modules TS #include "llvm/Demangle/Demangle.h" + #include "llvm/Demangle/Compiler.h" -#include "llvm/Support/MemAlloc.h" #include <algorithm> #include <cassert> @@ -89,7 +89,7 @@ class OutputStream { BufferCapacity *= 2; if (BufferCapacity < N + CurrentPosition) BufferCapacity = N + CurrentPosition; - Buffer = static_cast<char *>(llvm::safe_realloc(Buffer, BufferCapacity)); + Buffer = static_cast<char *>(std::realloc(Buffer, BufferCapacity)); } } @@ -274,7 +274,7 @@ public: #ifndef NDEBUG LLVM_DUMP_METHOD void dump() const { - char *Buffer = static_cast<char*>(llvm::safe_malloc(1024)); + char *Buffer = static_cast<char*>(std::malloc(1024)); OutputStream S(Buffer, 1024); print(S); S += '\0'; @@ -1947,11 +1947,11 @@ class PODSmallVector { void reserve(size_t NewCap) { size_t S = size(); if (isInline()) { - auto* Tmp = static_cast<T*>(llvm::safe_malloc(NewCap * sizeof(T))); + auto* Tmp = static_cast<T*>(std::malloc(NewCap * sizeof(T))); std::copy(First, Last, Tmp); First = Tmp; } else - First = static_cast<T*>(llvm::safe_realloc(First, NewCap * sizeof(T))); + First = static_cast<T*>(std::realloc(First, NewCap * sizeof(T))); Last = First + S; Cap = First + NewCap; } |