From 89df307b6133df04b2459da469676412fc9e1395 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 2 Apr 2006 03:35:30 +0000 Subject: [PATCH] Adjust the Intrinsics.gen interface a little bit llvm-svn: 27345 --- llvm/utils/TableGen/IntrinsicEmitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp index 1da361c9340e..ff15996f0ccb 100644 --- a/llvm/utils/TableGen/IntrinsicEmitter.cpp +++ b/llvm/utils/TableGen/IntrinsicEmitter.cpp @@ -214,9 +214,9 @@ EmitNoMemoryInfo(const std::vector &Ints, std::ostream &OS) { void IntrinsicEmitter:: EmitSideEffectInfo(const std::vector &Ints, std::ostream &OS){ - OS << "// isInstructionTriviallyDead code.\n"; + OS << "// Return true if doesn't access or only reads memory.\n"; OS << "#ifdef GET_SIDE_EFFECT_INFO\n"; - OS << " switch (F->getIntrinsicID()) {\n"; + OS << " switch (IntrinsicID) {\n"; OS << " default: break;\n"; for (unsigned i = 0, e = Ints.size(); i != e; ++i) { switch (Ints[i].ModRef) {