blob: 3eb6c392c5b752a37c9a5c302798516db98f4805 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
//===----- CGSystemRuntime.h - Interface to System specific Runtimes ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This provides an abstract class for system specific runtime calls.
//
//===----------------------------------------------------------------------===//
#include "CGSystemRuntime.h"
#include "CodeGenFunction.h"
namespace flang {
namespace CodeGen {
CGSystemRuntime::~CGSystemRuntime() {
}
llvm::Value *CGSystemRuntime::EmitMalloc(CodeGenFunction &CGF, llvm::Type *T, llvm::Value *Size) {
return CGF.getBuilder().CreateBitCast(EmitMalloc(CGF, Size), T);
}
}
} // end namespace flang
|