1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/include/llvm/Bitcode
Ted Kremenek d2f2a98e09 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).

llvm-svn: 43624
2007-11-01 22:23:34 +00:00
..
Archive.h Add explicit keywords. 2007-10-08 15:08:41 +00:00
BitCodes.h Add explicit keywords. 2007-10-08 15:08:41 +00:00
BitstreamReader.h Silenced a VC++ warning. 2007-10-24 00:06:31 +00:00
BitstreamWriter.h Add explicit keywords. 2007-10-08 15:08:41 +00:00
Deserialize.h Removed ReadVal from SerializeTrait<T>, and also removed it from 2007-11-01 22:23:34 +00:00
LLVMBitCodes.h Long double, part 1 of N. Support in IR. 2007-08-03 01:03:46 +00:00
ReaderWriter.h add a new CreateBitcodeWriterPass method, which creates a bitcode writer as 2007-05-06 02:30:12 +00:00
Serialization.h Removed ReadVal from SerializeTrait<T>, and also removed it from 2007-11-01 22:23:34 +00:00
SerializationFwd.h Created header file to include minimal forward references needed for 2007-10-25 18:19:29 +00:00
Serialize.h Added Serializer::EmitRef to deal with emitting arbitrary references. 2007-10-31 18:23:21 +00:00