-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathLLVMBridge.h
More file actions
32 lines (21 loc) · 800 Bytes
/
LLVMBridge.h
File metadata and controls
32 lines (21 loc) · 800 Bytes
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
30
31
32
//
// LLVMBridge.h
// Declaration of Objective-C class LLVMBridge to expose C++ services of LLVM to Swift
// For simplicity, this file is also used as Swift-ObjC bridging header in this sample project
//
// Created by Lightech on 10/24/2048.
//
#ifndef LLVMBridge_h
#define LLVMBridge_h
#import <Foundation/Foundation.h>
/// Class to encapsulate the interpreter's output
@interface LLVMInterpreterOutput : NSObject
@property NSString* _Nullable compilationOutput;
@property NSString* _Nullable programOutput;
@end
/// Class (intended to be single-instanced) to provide LLVM C++ service to Swift front-end
@interface LLVMBridge : NSObject
// Interpret the C++ source code file
- (nonnull LLVMInterpreterOutput*)interpretProgram:(nonnull NSData*)fileName;
@end
#endif /* LLVMBridge_h */