Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Unified Diff: lib/Bitcode/NaCl/Analysis/NaClBitcodeSubblockDist.cpp

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/Bitcode/NaCl/Analysis/NaClBitcodeSubblockDist.cpp
diff --git a/lib/Bitcode/NaCl/Analysis/NaClBitcodeSubblockDist.cpp b/lib/Bitcode/NaCl/Analysis/NaClBitcodeSubblockDist.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..9560a4f98d7ab1305026124bfc2bebe0fc87a462
--- /dev/null
+++ b/lib/Bitcode/NaCl/Analysis/NaClBitcodeSubblockDist.cpp
@@ -0,0 +1,40 @@
+//===-- NaClBitcodeSubblockDist.cpp ---------------------------------------===//
+// implements distribution maps for subblock values within an
+// (externally specified) block.
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/Bitcode/NaCl/NaClBitcodeSubblockDist.h"
+#include "llvm/Bitcode/NaCl/NaClBitcodeBlockDist.h"
+
+using namespace llvm;
+
+NaClBitcodeSubblockDistElement NaClBitcodeSubblockDist::DefaultSentinal;
+
+NaClBitcodeSubblockDistElement::~NaClBitcodeSubblockDistElement() {}
+
+NaClBitcodeDistElement *NaClBitcodeSubblockDistElement::
+CreateElement(NaClBitcodeDistValue Value) const {
+ return new NaClBitcodeSubblockDistElement();
+}
+
+const char *NaClBitcodeSubblockDistElement::GetTitle() const {
+ return "Subblocks";
+}
+
+const char *NaClBitcodeSubblockDistElement::GetValueHeader() const {
+ return "Subblock";
+}
+
+void NaClBitcodeSubblockDistElement::
+PrintRowValue(raw_ostream &Stream, NaClBitcodeDistValue Value,
+ const NaClBitcodeDist *Distribution) const {
+ Stream << NaClBitcodeBlockDist::GetName(Value);
+}
+
+NaClBitcodeSubblockDist::~NaClBitcodeSubblockDist() {}
« no previous file with comments | « lib/Bitcode/NaCl/Analysis/NaClBitcodeSizeDist.cpp ('k') | lib/Bitcode/NaCl/Analysis/NaClBitcodeValueDist.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698