two changes:

- exported structs now get protected with #ifdef/#define blocks (allows including multiple ispc-generated header fiels into the same c source
- when creating offload stubs, encountering a 'export' function for which we cannot produce a stub will only trigger a warning, not an error.
This commit is contained in:
Ingo Wald
2012-09-08 16:09:04 +02:00
parent 9e9f266e52
commit 4ecdbe4bd9
2 changed files with 16 additions and 2 deletions

3
type.h
View File

@@ -381,6 +381,9 @@ public:
std::string Mangle() const;
std::string GetCDeclaration(const std::string &name) const;
/** Returns the name of the enum type. (e.g. struct Foo -> "Foo".) */
const std::string &GetEnumName() const { return name; }
llvm::Type *LLVMType(llvm::LLVMContext *ctx) const;
llvm::DIType GetDIType(llvm::DIDescriptor scope) const;