mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-08 21:09:03 +02:00
[svn r248] Fixed: labels in inline asm block now work for the normal case.
Fixed: inline asm blocks are now emitted as a single asm entity.
This commit is contained in:
@@ -65,6 +65,16 @@ struct IRExp
|
||||
IRExp(Expression* l, Expression* r, DValue* val);
|
||||
};
|
||||
|
||||
struct IRAsmStmt
|
||||
{
|
||||
std::string code;
|
||||
std::string out_c;
|
||||
std::string in_c;
|
||||
std::string clobbers;
|
||||
std::vector<LLValue*> out;
|
||||
std::vector<LLValue*> in;
|
||||
};
|
||||
|
||||
// represents the module
|
||||
struct IRState
|
||||
{
|
||||
@@ -140,6 +150,10 @@ struct IRState
|
||||
FuncDeclVector ctors;
|
||||
FuncDeclVector dtors;
|
||||
FuncDeclVector unitTests;
|
||||
|
||||
// for inline asm
|
||||
std::vector<IRAsmStmt*> ASMs;
|
||||
bool inASM;
|
||||
};
|
||||
|
||||
#endif // LLVMDC_GEN_IRSTATE_H
|
||||
|
||||
Reference in New Issue
Block a user