diff options
author | Hongbin Zheng <etherzhhb@gmail.com> | 2013-06-29 13:22:15 +0000 |
---|---|---|
committer | Hongbin Zheng <etherzhhb@gmail.com> | 2013-06-29 13:22:15 +0000 |
commit | fe11e287b40df81daf41c9f7fd4b776b0171f07a (patch) | |
tree | 0a04e3437358c99108805a5cbb2dbb0585e0f1d4 /clang/lib/Basic/TargetInfo.cpp | |
parent | 5953d3712abd7b3fdb0f8442cd594350a1209204 (diff) | |
download | bcm5719-llvm-fe11e287b40df81daf41c9f7fd4b776b0171f07a.tar.gz bcm5719-llvm-fe11e287b40df81daf41c9f7fd4b776b0171f07a.zip |
BlockGenerator: Simplify the old value searching code.
Orignally, we first test if a ValueMap contains a Value, and than use the
index operator to get the corresponding new value. This requires the ValueMap
to lookup the key (i.e. the old value) twice.
Now, we directly use the "lookup" function provided by DenseMap to implement
the same functionality.
llvm-svn: 185260
Diffstat (limited to 'clang/lib/Basic/TargetInfo.cpp')
0 files changed, 0 insertions, 0 deletions