reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/BitVector.h
  848         safe_malloc(NumWords * sizeof(BitWord)));
include/llvm/ADT/SmallVector.h
  240   T *NewElts = static_cast<T*>(llvm::safe_malloc(NewCapacity*sizeof(T)));
include/llvm/Support/Allocator.h
  100     return safe_malloc(Size);
include/llvm/Support/MemAlloc.h
   32       return safe_malloc(1);
   46       return safe_malloc(1);
   59       return safe_malloc(1);
lib/CodeGen/LiveIntervalUnion.cpp
  189       safe_malloc(sizeof(LiveIntervalUnion)*NSize));
lib/ExecutionEngine/Interpreter/Execution.cpp
 1030   void *Memory = safe_malloc(MemToAlloc);
lib/IR/Core.cpp
  337       safe_malloc(MFEs.size() * sizeof(LLVMOpaqueModuleFlagEntry)));
  905                                               safe_malloc(MVEs.size() * sizeof(LLVMOpaqueValueMetadataEntry)));
lib/IR/DataLayout.cpp
  625       safe_malloc(sizeof(StructLayout)+(NumElts-1) * sizeof(uint64_t));
lib/Object/Object.cpp
  347   char *str = static_cast<char*>(safe_malloc(ret.size()));
lib/Support/SmallPtrSet.cpp
   34   CurArray = (const void**)safe_malloc(sizeof(void*) * CurArraySize);
  100   const void **NewBuckets = (const void**) safe_malloc(sizeof(void*) * NewSize);
  130     CurArray = (const void**)safe_malloc(sizeof(void*) * that.CurArraySize);
  159       CurArray = (const void**)safe_malloc(sizeof(void*) * RHS.CurArraySize);
lib/Support/SmallVector.cpp
   54     NewElts = safe_malloc(NewCapacity * TSize);
lib/Support/Unix/Signals.inc
  270   AltStack.ss_sp = static_cast<char *>(safe_malloc(AltStackSize));
tools/clang/include/clang/Sema/ParsedTemplate.h
  201       TemplateIdAnnotation *TemplateId = new (llvm::safe_malloc(
tools/clang/lib/AST/NestedNameSpecifier.cpp
  484     char *NewBuffer = static_cast<char *>(llvm::safe_malloc(NewCapacity));
tools/clang/lib/Lex/MacroArgs.cpp
   52         llvm::safe_malloc(totalSizeToAlloc<Token>(UnexpArgTokens.size())))
tools/clang/tools/libclang/BuildSystem.cpp
   81   *out_buffer_ptr = static_cast<char*>(llvm::safe_malloc(Data.size()));
  143   *out_buffer_ptr = static_cast<char*>(llvm::safe_malloc(Data.size()));
tools/clang/tools/libclang/CIndex.cpp
 6803   CXToken *Token = static_cast<CXToken *>(llvm::safe_malloc(sizeof(CXToken)));
 6842       llvm::safe_malloc(sizeof(CXToken) * CXTokens.size()));
tools/clang/tools/libclang/CXString.cpp
   98   char *Spelling = static_cast<char *>(llvm::safe_malloc(String.size() + 1));
tools/llvm-c-test/echo.cpp
   94               safe_malloc(ParamCount * sizeof(LLVMTypeRef)));
  726                        safe_malloc(NumHandlers * sizeof(LLVMBasicBlockRef)));
 1263               safe_malloc(OperandCount * sizeof(LLVMValueRef)));
unittests/Support/AllocatorTest.cpp
  149     void *MemBase = safe_malloc(Size + Alignment.value() - 1 + sizeof(void *));
unittests/Support/ManagedStatic.cpp
   34     void *stack = safe_malloc(n);
   87     void *Mem = safe_malloc(sizeof(int));