mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-31 09:32:11 +00:00
And final pack of warnings silencing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47372 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
07e6e56f57
commit
a27694d7aa
@ -19,6 +19,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <llvm/ADT/hash_map>
|
#include <llvm/ADT/hash_map>
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
#define LLVM_LTO_VERSION 2
|
#define LLVM_LTO_VERSION 2
|
||||||
|
|
||||||
|
@ -951,16 +951,19 @@ Linker::LinkModules(Module *Dest, Module *Src, std::string *ErrorMsg) {
|
|||||||
} else {
|
} else {
|
||||||
std::string DataLayout;
|
std::string DataLayout;
|
||||||
|
|
||||||
if (Dest->getEndianness() == Module::AnyEndianness)
|
if (Dest->getEndianness() == Module::AnyEndianness) {
|
||||||
if (Src->getEndianness() == Module::BigEndian)
|
if (Src->getEndianness() == Module::BigEndian)
|
||||||
DataLayout.append("E");
|
DataLayout.append("E");
|
||||||
else if (Src->getEndianness() == Module::LittleEndian)
|
else if (Src->getEndianness() == Module::LittleEndian)
|
||||||
DataLayout.append("e");
|
DataLayout.append("e");
|
||||||
if (Dest->getPointerSize() == Module::AnyPointerSize)
|
}
|
||||||
|
|
||||||
|
if (Dest->getPointerSize() == Module::AnyPointerSize) {
|
||||||
if (Src->getPointerSize() == Module::Pointer64)
|
if (Src->getPointerSize() == Module::Pointer64)
|
||||||
DataLayout.append(DataLayout.length() == 0 ? "p:64:64" : "-p:64:64");
|
DataLayout.append(DataLayout.length() == 0 ? "p:64:64" : "-p:64:64");
|
||||||
else if (Src->getPointerSize() == Module::Pointer32)
|
else if (Src->getPointerSize() == Module::Pointer32)
|
||||||
DataLayout.append(DataLayout.length() == 0 ? "p:32:32" : "-p:32:32");
|
DataLayout.append(DataLayout.length() == 0 ? "p:32:32" : "-p:32:32");
|
||||||
|
}
|
||||||
Dest->setDataLayout(DataLayout);
|
Dest->setDataLayout(DataLayout);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include "llvm/Support/FileUtilities.h"
|
#include "llvm/Support/FileUtilities.h"
|
||||||
#include "llvm/ADT/StringExtras.h"
|
#include "llvm/ADT/StringExtras.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <cstdlib>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
/// getCurrentLanguage - Return the current source language that the user is
|
/// getCurrentLanguage - Return the current source language that the user is
|
||||||
@ -448,11 +449,12 @@ void CLIDebugger::downCommand(std::string &Options) {
|
|||||||
unsigned CurFrame = RI.getCurrentFrameIdx();
|
unsigned CurFrame = RI.getCurrentFrameIdx();
|
||||||
|
|
||||||
// Check to see if we can go up the specified number of frames.
|
// Check to see if we can go up the specified number of frames.
|
||||||
if (CurFrame < Num)
|
if (CurFrame < Num) {
|
||||||
if (Num == 1)
|
if (Num == 1)
|
||||||
throw "Bottom (i.e., innermost) frame selected; you cannot go down.";
|
throw "Bottom (i.e., innermost) frame selected; you cannot go down.";
|
||||||
else
|
else
|
||||||
throw "Cannot go down " + utostr(Num) + " frames!";
|
throw "Cannot go down " + utostr(Num) + " frames!";
|
||||||
|
}
|
||||||
|
|
||||||
RI.setCurrentFrameIdx(CurFrame-Num);
|
RI.setCurrentFrameIdx(CurFrame-Num);
|
||||||
printProgramLocation();
|
printProgramLocation();
|
||||||
|
Loading…
Reference in New Issue
Block a user