aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Bitcode/Deserialize.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-11-01 22:23:34 +0000
committerTed Kremenek <kremenek@apple.com>2007-11-01 22:23:34 +0000
commitff37ccc570cd40dd2d4a0332b64a16171f51b1c2 (patch)
tree2ae72c99eb23522c5bf44742a5eb55cfb828efcc /include/llvm/Bitcode/Deserialize.h
parent514ab348fddcdffa8367685dc608b2f8d5de986d (diff)
Removed ReadVal from SerializeTrait<T>, and also removed it from
Deserializer. There were issues with Visual C++ barfing when instantiating SerializeTrait<T> when "T" was an abstract class AND SerializeTrait<T>::ReadVal was *never* called: template <typename T> struct SerializeTrait { <SNIP> static inline T ReadVal(Deserializer& D) { T::ReadVal(D); } <SNIP> }; Visual C++ would complain about "T" being an abstract class, even though ReadVal was never instantiated (although one of the other member functions were). Removing this from the trait is not a big deal. It was used hardly ever, and users who want "read-by-value" deserialization can simply call the appropriate methods directly instead of relying on trait-based-dispatch. The trait dispatch for serialization/deserialization is simply sugar in many cases (like this one). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bitcode/Deserialize.h')
-rw-r--r--include/llvm/Bitcode/Deserialize.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/llvm/Bitcode/Deserialize.h b/include/llvm/Bitcode/Deserialize.h
index d7ad7c1614..c83eea899e 100644
--- a/include/llvm/Bitcode/Deserialize.h
+++ b/include/llvm/Bitcode/Deserialize.h
@@ -103,11 +103,6 @@ public:
SerializeTrait<T>::Read(*this,X);
return X;
}
-
- template <typename T>
- inline T ReadVal() {
- return SerializeTrait<T>::ReadVal(*this);
- }
template <typename T>
inline T* Materialize() {