LLVM  8.0.1
Namespaces | Functions
MemAlloc.h File Reference

This file defines counterparts of C library allocation functions defined in the namespace 'std'. More...

#include "llvm/Support/Compiler.h"
#include "llvm/Support/ErrorHandling.h"
#include <cstdlib>
Include dependency graph for MemAlloc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 llvm
 This class represents lattice values for constants.
 

Functions

LLVM_ATTRIBUTE_RETURNS_NONNULL void * llvm::safe_malloc (size_t Sz)
 
LLVM_ATTRIBUTE_RETURNS_NONNULL void * llvm::safe_calloc (size_t Count, size_t Sz)
 
LLVM_ATTRIBUTE_RETURNS_NONNULL void * llvm::safe_realloc (void *Ptr, size_t Sz)
 

Detailed Description

This file defines counterparts of C library allocation functions defined in the namespace 'std'.

The new allocation functions crash on allocation failure instead of returning null pointer.

Definition in file MemAlloc.h.