mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-02 20:38:34 +00:00
add tail marker as a comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21739 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a471e045b7
commit
fe673d9351
@ -1542,6 +1542,7 @@ void CWriter::visitCallInst(CallInst &I) {
|
|||||||
// match exactly.
|
// match exactly.
|
||||||
//
|
//
|
||||||
bool WroteCallee = false;
|
bool WroteCallee = false;
|
||||||
|
if (I.isTailCall()) Out << " /*tail*/ ";
|
||||||
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Callee))
|
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Callee))
|
||||||
if (CE->getOpcode() == Instruction::Cast)
|
if (CE->getOpcode() == Instruction::Cast)
|
||||||
if (Function *RF = dyn_cast<Function>(CE->getOperand(0))) {
|
if (Function *RF = dyn_cast<Function>(CE->getOperand(0))) {
|
||||||
|
@ -1542,6 +1542,7 @@ void CWriter::visitCallInst(CallInst &I) {
|
|||||||
// match exactly.
|
// match exactly.
|
||||||
//
|
//
|
||||||
bool WroteCallee = false;
|
bool WroteCallee = false;
|
||||||
|
if (I.isTailCall()) Out << " /*tail*/ ";
|
||||||
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Callee))
|
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Callee))
|
||||||
if (CE->getOpcode() == Instruction::Cast)
|
if (CE->getOpcode() == Instruction::Cast)
|
||||||
if (Function *RF = dyn_cast<Function>(CE->getOperand(0))) {
|
if (Function *RF = dyn_cast<Function>(CE->getOperand(0))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user