summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2009-12-11 15:30:07 +0000
committerGabor Greif <ggreif@gmail.com>2009-12-11 15:30:07 +0000
commitcb4685c012a5410b6e122a51ff1d07e615e790b5 (patch)
tree9823938a7e27d7fb78f65023a9f54aaa71fec2a4 /clang/lib/CodeGen/CodeGenModule.cpp
parentb11118bd0b02bb4cbb6c59c9c213c22d8cd34bab (diff)
downloadbcm5719-llvm-cb4685c012a5410b6e122a51ff1d07e615e790b5.tar.gz
bcm5719-llvm-cb4685c012a5410b6e122a51ff1d07e615e790b5.zip
Simplify this class by removing the result cache.
This change removes the DefaultConstructible and CopyAssignable constraints on the template parameter T (the first one). The second template parameter (R) is defaulted to be identical to the first and controls the result type. By specifying it to be (const T&) additionally the CopyConstructible constraint on T can be removed. This allows to use StringSwitch e.g. for llvm::Constant instances. Regarding the other review feedback regarding performance because of taking pointers, this class should be completely optimizable like before, since all methods are inline and the pointer dereferencing and result value caching should be possible behind the scenes by the "as-if" rule. llvm-svn: 91123
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud