OLD | NEW |
(Empty) | |
| 1 //===-- NaClBitcodeSubblockDist.cpp ---------------------------------------===// |
| 2 // implements distribution maps for subblock values within an |
| 3 // (externally specified) block. |
| 4 // |
| 5 // The LLVM Compiler Infrastructure |
| 6 // |
| 7 // This file is distributed under the University of Illinois Open Source |
| 8 // License. See LICENSE.TXT for details. |
| 9 // |
| 10 //===----------------------------------------------------------------------===// |
| 11 |
| 12 #include "llvm/Bitcode/NaCl/NaClBitcodeSubblockDist.h" |
| 13 #include "llvm/Bitcode/NaCl/NaClBitcodeBlockDist.h" |
| 14 |
| 15 using namespace llvm; |
| 16 |
| 17 NaClBitcodeSubblockDistElement NaClBitcodeSubblockDist::DefaultSentinal; |
| 18 |
| 19 NaClBitcodeSubblockDistElement::~NaClBitcodeSubblockDistElement() {} |
| 20 |
| 21 NaClBitcodeDistElement *NaClBitcodeSubblockDistElement:: |
| 22 CreateElement(NaClBitcodeDistValue Value) const { |
| 23 return new NaClBitcodeSubblockDistElement(); |
| 24 } |
| 25 |
| 26 const char *NaClBitcodeSubblockDistElement::GetTitle() const { |
| 27 return "Subblocks"; |
| 28 } |
| 29 |
| 30 const char *NaClBitcodeSubblockDistElement::GetValueHeader() const { |
| 31 return "Subblock"; |
| 32 } |
| 33 |
| 34 void NaClBitcodeSubblockDistElement:: |
| 35 PrintRowValue(raw_ostream &Stream, NaClBitcodeDistValue Value, |
| 36 const NaClBitcodeDist *Distribution) const { |
| 37 Stream << NaClBitcodeBlockDist::GetName(Value); |
| 38 } |
| 39 |
| 40 NaClBitcodeSubblockDist::~NaClBitcodeSubblockDist() {} |
OLD | NEW |