mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Changes For Bug 352
Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16137 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
|
||||
#include "llvm/Bytecode/Reader.h"
|
||||
#include "llvm/Module.h"
|
||||
#include "Support/FileUtilities.h"
|
||||
#include "llvm/Support/FileUtilities.h"
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
using namespace llvm;
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
#include "llvm/Bytecode/Reader.h"
|
||||
#include "llvm/Module.h"
|
||||
#include "Support/FileUtilities.h"
|
||||
#include "llvm/Support/FileUtilities.h"
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
using namespace llvm;
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "llvm/SymbolTable.h"
|
||||
#include "llvm/Bytecode/Format.h"
|
||||
#include "llvm/Support/GetElementPtrTypeIterator.h"
|
||||
#include "Support/StringExtras.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include <sstream>
|
||||
using namespace llvm;
|
||||
|
||||
@ -428,14 +428,20 @@ Value * BytecodeReader::getValue(unsigned type, unsigned oNum, bool Create) {
|
||||
|
||||
if (!Create) return 0; // Do not create a placeholder?
|
||||
|
||||
// Did we already create a place holder?
|
||||
std::pair<unsigned,unsigned> KeyValue(type, oNum);
|
||||
ForwardReferenceMap::iterator I = ForwardReferences.lower_bound(KeyValue);
|
||||
if (I != ForwardReferences.end() && I->first == KeyValue)
|
||||
return I->second; // We have already created this placeholder
|
||||
|
||||
Value *Val = new Argument(getType(type));
|
||||
ForwardReferences.insert(I, std::make_pair(KeyValue, Val));
|
||||
return Val;
|
||||
// If the type exists (it should)
|
||||
if (const Type* Ty = getType(type)) {
|
||||
// Create the place holder
|
||||
Value *Val = new Argument(Ty);
|
||||
ForwardReferences.insert(I, std::make_pair(KeyValue, Val));
|
||||
return Val;
|
||||
}
|
||||
throw "Can't create placeholder for value of type slot #" + utostr(type);
|
||||
}
|
||||
|
||||
/// This is just like getValue, but when a compaction table is in use, it
|
||||
|
@ -17,9 +17,9 @@
|
||||
#include "Reader.h"
|
||||
#include "llvm/Module.h"
|
||||
#include "llvm/Instructions.h"
|
||||
#include "Support/FileUtilities.h"
|
||||
#include "Support/StringExtras.h"
|
||||
#include "Config/unistd.h"
|
||||
#include "llvm/Support/FileUtilities.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/Config/unistd.h"
|
||||
#include <cerrno>
|
||||
using namespace llvm;
|
||||
|
||||
|
@ -23,8 +23,8 @@
|
||||
#include "llvm/SymbolTable.h"
|
||||
#include "llvm/Type.h"
|
||||
#include "llvm/Analysis/ConstantsScanner.h"
|
||||
#include "Support/PostOrderIterator.h"
|
||||
#include "Support/STLExtras.h"
|
||||
#include "llvm/ADT/PostOrderIterator.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
|
||||
|
@ -25,8 +25,8 @@
|
||||
#include "llvm/Module.h"
|
||||
#include "llvm/SymbolTable.h"
|
||||
#include "llvm/Support/GetElementPtrTypeIterator.h"
|
||||
#include "Support/STLExtras.h"
|
||||
#include "Support/Statistic.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include <cstring>
|
||||
#include <algorithm>
|
||||
using namespace llvm;
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "llvm/Bytecode/Writer.h"
|
||||
#include "llvm/Bytecode/Format.h"
|
||||
#include "llvm/Instruction.h"
|
||||
#include "Support/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
Reference in New Issue
Block a user