<div dir="ltr">Well found! :)<br><br>-eric</div><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 11:30 AM David Blaikie <<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: dblaikie<br>
Date: Mon Mar 16 13:18:32 2015<br>
New Revision: 232397<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=232397&view=rev" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project?rev=232397&view=rev</a><br>
Log:<br>
Remove dead file (was only used by the C backend)<br>
<br>
Removed:<br>
llvm/trunk/include/llvm/<u></u>Analysis/ConstantsScanner.h<br>
<br>
Removed: llvm/trunk/include/llvm/<u></u>Analysis/ConstantsScanner.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/ConstantsScanner.h?rev=232396&view=auto" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project/llvm/trunk/include/<u></u>llvm/Analysis/<u></u>ConstantsScanner.h?rev=232396&<u></u>view=auto</a><br>
==============================<u></u>==============================<u></u>==================<br>
--- llvm/trunk/include/llvm/<u></u>Analysis/ConstantsScanner.h (original)<br>
+++ llvm/trunk/include/llvm/<u></u>Analysis/ConstantsScanner.h (removed)<br>
@@ -1,94 +0,0 @@<br>
-//==- llvm/Analysis/<u></u>ConstantsScanner.h - Iterate over constants -*- C++ -*-===//<br>
-//<br>
-// The LLVM Compiler Infrastructure<br>
-//<br>
-// This file is distributed under the University of Illinois Open Source<br>
-// License. See LICENSE.TXT for details.<br>
-//<br>
-//===------------------------<u></u>------------------------------<u></u>----------------===//<br>
-//<br>
-// This class implements an iterator to walk through the constants referenced by<br>
-// a method. This is used by the Bitcode & Assembly writers to build constant<br>
-// pools.<br>
-//<br>
-//===------------------------<u></u>------------------------------<u></u>----------------===//<br>
-<br>
-#ifndef LLVM_ANALYSIS_<u></u>CONSTANTSSCANNER_H<br>
-#define LLVM_ANALYSIS_<u></u>CONSTANTSSCANNER_H<br>
-<br>
-#include "llvm/IR/InstIterator.h"<br>
-<br>
-namespace llvm {<br>
-<br>
-class Constant;<br>
-<br>
-class constant_iterator : public std::iterator<std::forward_<u></u>iterator_tag,<br>
- const Constant, ptrdiff_t> {<br>
- const_inst_iterator InstI; // Method instruction iterator<br>
- unsigned OpIdx; // Operand index<br>
-<br>
- bool isAtConstant() const {<br>
- assert(!InstI.atEnd() && OpIdx < InstI->getNumOperands() &&<br>
- "isAtConstant called with invalid arguments!");<br>
- return isa<Constant>(InstI-><u></u>getOperand(OpIdx));<br>
- }<br>
-<br>
-public:<br>
- constant_iterator(const Function *F) : InstI(inst_begin(F)), OpIdx(0) {<br>
- // Advance to first constant... if we are not already at constant or end<br>
- if (InstI != inst_end(F) && // InstI is valid?<br>
- (InstI->getNumOperands() == 0 || !isAtConstant())) // Not at constant?<br>
- operator++();<br>
- }<br>
-<br>
- constant_iterator(const Function *F, bool) // end ctor<br>
- : InstI(inst_end(F)),<br>
- OpIdx(0) {}<br>
-<br>
- bool operator==(const constant_iterator &x) const {<br>
- return OpIdx == x.OpIdx && InstI == x.InstI;<br>
- }<br>
- bool operator!=(const constant_iterator &x) const { return !(*this == x); }<br>
-<br>
- pointer operator*() const {<br>
- assert(isAtConstant() && "Dereferenced an iterator at the end!");<br>
- return cast<Constant>(InstI-><u></u>getOperand(OpIdx));<br>
- }<br>
- pointer operator->() const { return **this; }<br>
-<br>
- constant_iterator &operator++() { // Preincrement implementation<br>
- ++OpIdx;<br>
- do {<br>
- unsigned NumOperands = InstI->getNumOperands();<br>
- while (OpIdx < NumOperands && !isAtConstant()) {<br>
- ++OpIdx;<br>
- }<br>
-<br>
- if (OpIdx < NumOperands) return *this; // Found a constant!<br>
- ++InstI;<br>
- OpIdx = 0;<br>
- } while (!InstI.atEnd());<br>
-<br>
- return *this; // At the end of the method<br>
- }<br>
-<br>
- onstant_iterator operator++(int) { // Postincrement<br>
- constant_iterator tmp = *this;<br>
- ++*this;<br>
- return tmp;<br>
- }<br>
-<br>
- bool atEnd() const { return InstI.atEnd(); }<br>
-};<br>
-<br>
-inline constant_iterator constant_begin(const Function *F) {<br>
- return constant_iterator(F);<br>
-}<br>
-<br>
-inline constant_iterator constant_end(const Function *F) {<br>
- return constant_iterator(F, true);<br>
-}<br>
-<br>
-} // End llvm namespace<br>
-<br>
-#endif<br>
<br>
<br>
______________________________<u></u>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvm-commits</a><br>
</blockquote></div>