summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/Reader.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-01-27 11:49:27 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-01-27 11:49:27 +0000
commit76a8d45e327a19077998946c63acb7d48731dc0b (patch)
treec6ed595fed2ad816d1d2722c87bae8e46f821372 /llvm/lib/Bytecode/Reader/Reader.h
parent6e2135d5f9d86e48ab4874cf7eb6cfe20c05d732 (diff)
downloadbcm5719-llvm-76a8d45e327a19077998946c63acb7d48731dc0b.tar.gz
bcm5719-llvm-76a8d45e327a19077998946c63acb7d48731dc0b.zip
Fix auto-upgrade of intrinsics to work properly with both assembly and
bytecode reading. This code is crufty, the result of much hacking to get things working correctly. Cleanup patches will follow. llvm-svn: 25682
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.h')
-rw-r--r--llvm/lib/Bytecode/Reader/Reader.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.h b/llvm/lib/Bytecode/Reader/Reader.h
index 21eb8462fb2..ffc251b64ef 100644
--- a/llvm/lib/Bytecode/Reader/Reader.h
+++ b/llvm/lib/Bytecode/Reader/Reader.h
@@ -323,9 +323,9 @@ private:
/// In release 1.7 we changed intrinsic functions to not be overloaded. There
/// is no bytecode change for this, but to optimize the auto-upgrade of calls
- /// to intrinsic functions, we set this flag to identify when a module has
- /// been read that contains intrinsics that were upgraded.
- bool hasUpgradedIntrinsicFunctions;
+ /// to intrinsic functions, we save a mapping of old function definitions to
+ /// the new ones so call instructions can be upgraded efficiently.
+ std::map<Function*,Function*> upgradedFunctions;
/// CompactionTypes - If a compaction table is active in the current function,
/// this is the mapping that it contains. We keep track of what resolved type
OpenPOWER on IntegriCloud