//
// The LLVM Compiler Infrastructure
//
-// This file was developed by Chris Lattner and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
void *Allocate(unsigned Size, unsigned Alignment) { return malloc(Size); }
template <typename T>
- T* Allocate() { return reinterpret_cast<T*>(malloc(sizeof(T))); }
+ void *Allocate() { return reinterpret_cast<T*>(malloc(sizeof(T))); }
void Deallocate(void *Ptr) { free(Ptr); }
void PrintStats() const {}
void *Allocate(unsigned Size, unsigned Alignment);
template <typename T>
- T* Allocate() {
+ void *Allocate() {
return reinterpret_cast<T*>(Allocate(sizeof(T),AlignOf<T>::Alignment));
}
void PrintStats() const;
};
-} // end namespace clang
+} // end namespace llvm
#endif