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

Side by Side Diff: tools/pnacl-llc/ThreadedStreamingCache.h

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 //==- ThreadedStreamingCache.h - Cache for StreamingMemoryObject -*- C++ -*-==// 1 //==- ThreadedStreamingCache.h - Cache for StreamingMemoryObject -*- C++ -*-==//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // The LLVM Compiler Infrastructure
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 9
10 #ifndef THREADEDSTREAMINGCACHE_H 10 #ifndef THREADEDSTREAMINGCACHE_H
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 llvm::StreamingMemoryObject *Streamer; 62 llvm::StreamingMemoryObject *Streamer;
63 // Cached data for addresses [CacheBase, CacheBase + kCacheSize) 63 // Cached data for addresses [CacheBase, CacheBase + kCacheSize)
64 mutable std::vector<unsigned char> Cache; 64 mutable std::vector<unsigned char> Cache;
65 // The MemoryObject is at least this size. Used as a cache for isValidAddress. 65 // The MemoryObject is at least this size. Used as a cache for isValidAddress.
66 mutable uint64_t MinObjectSize; 66 mutable uint64_t MinObjectSize;
67 // Current base address for the cache. 67 // Current base address for the cache.
68 mutable uint64_t CacheBase; 68 mutable uint64_t CacheBase;
69 69
70 ThreadedStreamingCache( 70 ThreadedStreamingCache(
71 const ThreadedStreamingCache&) LLVM_DELETED_FUNCTION; 71 const ThreadedStreamingCache&) = delete;
72 void operator=(const ThreadedStreamingCache&) LLVM_DELETED_FUNCTION; 72 void operator=(const ThreadedStreamingCache&) = delete;
73 }; 73 };
74 74
75 } // namespace llvm 75 } // namespace llvm
76 76
77 #endif // THREADEDSTREAMINGCACHE_H 77 #endif // THREADEDSTREAMINGCACHE_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698