]> granicus.if.org Git - clang/commit
Frontend: define _LP64 in a target-independent way
authorDylan Noblesmith <nobled@dreamwidth.org>
Fri, 10 Aug 2012 19:12:37 +0000 (19:12 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Fri, 10 Aug 2012 19:12:37 +0000 (19:12 +0000)
commit6bd3291605a3034b858c8aeecc6990fa4f979f6c
treeba36e48e909fa2a478e514c16433651df011b02e
parent5498e3a01be0446f38c102278847566176f6507f
Frontend: define _LP64 in a target-independent way

Instead of adding it to each individual subclass in
Targets.cpp, simply check the appropriate target
values.

Where before it was only on x86_64 and ppc64, it's now
also defined on mips64 and nvptx64.

Also add a bunch of negative tests to ensure it is *not*
defined on any other architectures while we're here.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161685 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
lib/Frontend/InitPreprocessor.cpp
test/Preprocessor/init.c