[llvm-commits] Patch to unify same code in multiple spots

Duncan Sands baldrick at free.fr
Wed Jul 25 01:00:03 PDT 2012


Hi Micah, instead of the prefix/suffix logic, why not do this:

...
    } else if (const CallInst *CI = dyn_cast<CallInst>(&I)) {
      // Print the calling convention being used.
      if (CI->getCallingConv() != CallingConv::C) // The default
        PrintCallingConv(F->getCallingConv(), Out);
...
?

Ciao, Duncan.



More information about the llvm-commits mailing list