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

Unified Diff: lib/Bitcode/NaCl/Analysis/NaClCompressCodeDist.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
« no previous file with comments | « lib/Bitcode/NaCl/Analysis/NaClCompressBlockDist.cpp ('k') | lib/Bitcode/NaCl/Analysis/NaClObjDump.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Bitcode/NaCl/Analysis/NaClCompressCodeDist.cpp
diff --git a/lib/Bitcode/NaCl/Analysis/NaClCompressCodeDist.cpp b/lib/Bitcode/NaCl/Analysis/NaClCompressCodeDist.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..72320388e9120dba02e79bf6ad1a6b8a3d7a2404
--- /dev/null
+++ b/lib/Bitcode/NaCl/Analysis/NaClCompressCodeDist.cpp
@@ -0,0 +1,32 @@
+//===-- NaClCompressCodeDist.cpp ------------------------------------------===//
+// Implements distribution maps for record codes for pnacl-bccompress.
+//
+// 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/NaClCompressCodeDist.h"
+
+using namespace llvm;
+
+NaClCompressCodeDistElement::~NaClCompressCodeDistElement() {}
+
+NaClBitcodeDistElement *NaClCompressCodeDistElement::CreateElement(
+ NaClBitcodeDistValue Value) const {
+ return new NaClCompressCodeDistElement();
+}
+
+void NaClCompressCodeDistElement::AddRecord(const NaClBitcodeRecord &Record) {
+ NaClBitcodeCodeDistElement::AddRecord(Record);
+ SizeDist.AddRecord(Record);
+}
+
+const SmallVectorImpl<NaClBitcodeDist*> *
+NaClCompressCodeDistElement::GetNestedDistributions() const {
+ return &NestedDists;
+}
+
+NaClCompressCodeDistElement NaClCompressCodeDistElement::Sentinel;
« no previous file with comments | « lib/Bitcode/NaCl/Analysis/NaClCompressBlockDist.cpp ('k') | lib/Bitcode/NaCl/Analysis/NaClObjDump.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698